[Bonmin] Fw: BonMin linking errors

Ramesh, Ujwal (rameshul) rameshul at mail.uc.edu
Fri Oct 17 11:55:06 EDT 2014


Hi All,


I could figure this out.


I had missed -c options in my CFLAGS.


Thanks,

Ujwal Ramesh
Graduate Student,
University Of Cincinnati
Ph: +1-513-302-4771
________________________________
From: Ramesh, Ujwal (rameshul)
Sent: Thursday, October 16, 2014 10:05 PM
To: bonmin at list.coin-or.org
Subject: BonMin linking errors


Hi All,


I am trying to link my C++  code with the Bonmin libraries and I have used the following lines in my Make file:

ADDINCFLAGS = -I$(HOME)/MyCoolPrograms/include
CXXFLAGS = -O3 -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas

CXXLINKFLAGS =  -Wl,--rpath -Wl,/home/me/Coin-Pkg/lib

as described in


https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries


I am using a g++ compiler on UNIX enironment.


While I first included  "-pedantic-errors" , I got the following error


comma at end of enumerator list


and as I was using someone else's headers, I had to remove this flag.


I tried compiling after removing the above flag and the below are the typr of errors I am getting:


1) usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 10

2) /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'

3) DesignMain.cxx:(.text+0x12): undefined reference to `Cell::CellGetXpos()'

4) collect2: ld returned 1 exit status


Note: Regarding error (3), my code was compiling fine before including the Bonmin libraries.



Please let me know if I am missing anything basic here.


Also, Could you please let me know if there were already existing forms on Bonmin because, people would have faced similar errors and I could get my answers in the forum discussions ?


Thanks in advance for your help.


Regards,

Ujwal Ramesh
Graduate Student,
University Of Cincinnati
Ph: +1-513-302-4771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/bonmin/attachments/20141017/22ad9a84/attachment.html>


More information about the Bonmin mailing list