[Bonmin] Fw: BonMin linking errors

Tony Kelman kelman at berkeley.edu
Fri Oct 17 12:02:05 EDT 2014


Ujwal,

Thanks for letting us know you got it working. I don’t think there’s any other forum on Bonmin aside from this mailing list. If there’s information elsewhere on the internet aside from COIN-OR pages/Trac/lists that pertains to Bonmin troubleshooting I’m not aware of it.

-Tony



From: Ramesh, Ujwal (rameshul) 
Sent: Friday, October 17, 2014 8:55 AM
To: bonmin at list.coin-or.org 
Subject: [Bonmin] Fw: BonMin linking errors

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/includeCXXFLAGS = -O3 -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmasCXXLINKFLAGS =  -Wl,--rpath -Wl,/home/me/Coin-Pkg/libas 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

--------------------------------------------------------------------------------
_______________________________________________
Bonmin mailing list
Bonmin at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/bonmin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/bonmin/attachments/20141017/d6d5772a/attachment.html>


More information about the Bonmin mailing list