Menu

I can't compile my program.

Help
Anonymous
2000-08-08
2000-10-13
  • Anonymous

    Anonymous - 2000-08-08

    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.

     
    • David Sugar

      David Sugar - 2000-08-09

      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.

       
      • Anonymous

        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.

         
        • David Sugar

          David Sugar - 2000-08-11

          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++.

           
          • Anonymous

            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?

             
            • Olleg Samoylov

              Olleg Samoylov - 2000-10-13

              thread.h have bug in 177 line, maybe 174 in early version. Look bugtrace 114819, 115939

               
              • Olleg Samoylov

                Olleg Samoylov - 2000-10-13

                Look at note in this forum date 2000-Jun-21 15:45.

                 

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.