I've just has a similar problem. I could compile correctly on lucid, but the 
same command-line would not compile on precise.
After posting to Stack Overflow, the issue was that I had the -l options before 
the object files.

Changing the command-line from:
g++ -o installertest \
        -lsybdb \
        -lxmlrpc \
        -lxmlrpc_cpp \
        -lxmlrpc_xmlparse \
        -lxmlrpc_xmltok \
        -lxmlrpc_util \
        -lxmlrpc++ \
        -lxmlrpc_server_cgi \
        -lcrypto \
        -std=c++0x \
        ContractData.o installertest.o

to:
g++ -o installertest \
        ContractData.o installertest.o \
        -lsybdb \
        -lxmlrpc \
        -lxmlrpc_cpp \
        -lxmlrpc_xmlparse \
        -lxmlrpc_xmltok \
        -lxmlrpc_util \
        -lxmlrpc++ \
        -lxmlrpc_server_cgi \
        -lcrypto \
        -std=c++0x

Worked around the problem.

Apparently, this is some kind of implementation change between versions.
Not sure if this is an Ubuntu-specific issue, or a general gcc issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993991

Title:
  nm and ld cannot find symbols in libblas.so and other files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/993991/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to