Menu

building demo example tcpservice

Help
Anonymous
2000-11-08
2000-11-11
  • Anonymous

    Anonymous - 2000-11-08

    When I try to build tcpservice.ccp with
    g++ -lz -ldl -lpthread -lccxx tcpservice.cpp
    I get a syntax error before ";" in /usr/include/cc++/thread.h : 177

    But I can build tcpservice into demo folder from source code (and it works fine)

    Any idea ?

     
    • David Sugar

      David Sugar - 2000-11-08

      You have to watch which compiler flags are required for your target platform.  Currently /usr/include/cc++/config.def holds all the correct compile and link options to use.

       
      • Anonymous

        Anonymous - 2000-11-10

        That's what is in my config.def file

        flags:-D_REENTRANT -D_THREAD_SAFE  -O2 -fsigned-char -D_GNU_SOURCE
        link: -pthread
        load:-ldl
        extra:-lz

        I try to build tcpservice with :
        g++ -lz -ldl -lpthread -lccxx -lccstd -lccio tcpservice.cpp

        And then I got the error in thread.h.

        And, using those flags, I can build tcp.cpp from demo section.

        Could someone tell me if I forgot a flag. Sorry, I'm not an expert in compilation, and I don't really understand what config.def tell.

         
        • Anonymous

          Anonymous - 2000-11-11

          Hi again,

          I solved myself my problem. Building seems to work OK under LinuxPPC 2000 with those flags.

          g++ -D_REENTRANT -D_THREAD_SAFE -O2 -fsigned-char -D_GNU_SOURCE -pthread -ldl -lz -lccxx tcpservice.cc

           

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.