I'm trying to just basically run the demo tcp.cpp by hand, however I keep getting the following error:
"
/usr/local/include/cc++/thread.h:174: syntax error before `;'
"
Here is the command I'm issuing:
g++ -D_REENTRANT -D_THREAD_SAFE -pthread -g -O2 -ldl -lz client.cpp -O -I/usr/local/include/cc++ -L/usr/local/lib -lpthread -o client
What am I doing wrong here? I took all of the flags from the config.def file and placed them in there, but I really am lost here. Any help would be a definite boost in moral.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When compiling the demo's you normally want to make sure they are compiled
against the same Common C++ as being distributed rather than an installed copy which may be older. Hence I would use -I../posix -L../posix. But I will look into this further.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2000-08-10
It didn't work. I can run the make file on the included demos just fine. I just can't find the right command for programs that I've written to compile.
The latest versions of the libraries are in the above posted -I & -L directories.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I understand now. FIrst, you may not wish to use -I/usr/local/include/cc++ but rather -I/usr/local/include unless you are using #include <thread.h> rather than #include <cc++/thread.h>. I tend to favor the latter as it prevents accidental collisions with system headers. You may also want to look at ccscript which is fairly small and meant to be compiled seperately from Common C++.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2000-08-12
It's still a no go. I dl'd your ccscript program but that thing is huge compared to what I'm trying to do. I have ~ 30 lines of code, and I just want to compile by hand, but I get the error message that I posted above about line 174. Any other ideas, on how I manage to mangle the compiling options?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to just basically run the demo tcp.cpp by hand, however I keep getting the following error:
"
/usr/local/include/cc++/thread.h:174: syntax error before `;'
"
Here is the command I'm issuing:
g++ -D_REENTRANT -D_THREAD_SAFE -pthread -g -O2 -ldl -lz client.cpp -O -I/usr/local/include/cc++ -L/usr/local/lib -lpthread -o client
What am I doing wrong here? I took all of the flags from the config.def file and placed them in there, but I really am lost here. Any help would be a definite boost in moral.
When compiling the demo's you normally want to make sure they are compiled
against the same Common C++ as being distributed rather than an installed copy which may be older. Hence I would use -I../posix -L../posix. But I will look into this further.
It didn't work. I can run the make file on the included demos just fine. I just can't find the right command for programs that I've written to compile.
The latest versions of the libraries are in the above posted -I & -L directories.
I understand now. FIrst, you may not wish to use -I/usr/local/include/cc++ but rather -I/usr/local/include unless you are using #include <thread.h> rather than #include <cc++/thread.h>. I tend to favor the latter as it prevents accidental collisions with system headers. You may also want to look at ccscript which is fairly small and meant to be compiled seperately from Common C++.
It's still a no go. I dl'd your ccscript program but that thing is huge compared to what I'm trying to do. I have ~ 30 lines of code, and I just want to compile by hand, but I get the error message that I posted above about line 174. Any other ideas, on how I manage to mangle the compiling options?
thread.h have bug in 177 line, maybe 174 in early version. Look bugtrace 114819, 115939
Look at note in this forum date 2000-Jun-21 15:45.