Menu

Compiling Problems With 1.9.1

Help
Kit Dotson
2001-12-07
2001-12-22
  • Kit Dotson

    Kit Dotson - 2001-12-07

    I know that some other people have already posted about this but I feel the need to add my voice.  I cannot get 1.9.1 to work correctly with any of my programs (even ones that compiled fine with 1.6.0, etc.)

    Changing library order does not work.  I haven't been able to figure out what the problem is, and I've seen two different error-types on two different systems.  Below is one of those systems. 

    Another set of problems I encountered consists of a bunch of "undeclared" warnings about things like "`SOCKET_BINDING_FAILED' undeclared (first use this function)" and "`cc_UDPSocket' undeclared (first use this function)" ... all of this worked fine with 1.6.0.  What changed?  What do I have to change about my programs to make them work with 1.9.1??

    Here is an example of an empty program that just does not work:

    #include <cc++/config.h>
    #include <cc++/macros.h>
    #include <cc++/thread.h>
    #include <cc++/socket.h>

    #include <iostream.h>

    #ifdef  __NAMESPACES__
       using namespace std;
       using namespace ost;
    #endif

    int main(void)
    {
       cout << "Test." << endl;
    }

    Then when compiling:

    g++  -O2 -D_GNU_SOURCE -D_RENTRANT -D_THREAD_SAFE  -c -o hostname.o hostname.cpp
    g++ hostname.o -o common -ldl -lz -lccxx -pthread -lpthread
    hostname.o(.rodata+0x164): undefined reference to `ost::cc_UDPSocket type_info node'
    hostname.o(.rodata+0x1c4): undefined reference to `ost::cc_Socket type_info node'
    hostname.o(.rodata+0x1e4): undefined reference to `ost::cc_TCPStream type_info node'
    collect2: ld returned 1 exit status
    make: *** [common] Error 1

     
    • Kit Dotson

      Kit Dotson - 2001-12-22

      ... oh.

      Well.  That was silly of me.  I just discovered (after installing 1.9.3) that the name of the library changed.  I'm trying to load libccxx (which is still there from the previous version) and it has changed to libccgnu!

      I've gotten them compiling correctly again.  The previous complaint can be circular filed.

      Amerist.

       

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.