ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I try to link this with fltk lib (1.3 win-bin) I get the following errors. My gcc is TDM 4.8 (32 bit). I use eclipse cdt. Please tell me what goes wrong here.
C:\fltk\lib/libfltk.a(Fl.o):Fl.cxx.text+0x179): undefined reference to OleUninitialize@0' . .(18 errors) . C:\fltk\lib\/libfltk.a(Fl.o):Fl.cxx.text+0x537): undefined reference toGdiFlush@0' c:/gcc/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: C:\fltk\lib/libfltk.a(Fl.o): bad reloc address 0x4 in section `.data' c:/gcc/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status
You are missing to link against the windows libs. Search on MSDN for each of the symbols the linker complains about. MSDN will tell you which lib(s) you have to link against.
For example "DeleteObject": Find it here: https://msdn.microsoft.com/en-us/library/dd183539.aspx [ed: URL updated]
Find the info about libs as there are: "Library: Use Gdi32.lib" -> written on that webpage
Add "gdi32" to the libs to link against.
For gcc I think would mean adding -lgdi32, I'm not sure how to accomplish that via Eclipse.
Indeed, however, OP's (very complete) info makes some suggestions to windows...hence my observation...if the problem lies there...there's not a lot we can do...
Thor
If your linker is able to link from *.dll files, simply specify this DLL: c:\windows\system32\ole32.dll (in case 64-bit Windows, 64-bit linker, 32-bit target: c:\windows\syswow64\ole32.dll)
Otherwise you have to find/create an ole32.lib file.
you have problems with reading, or is it that you just want to rant around a little bit
yea sure...
Basic politeness and a misunderstanding (for which I apologised beforehand)...but...politeness seems not to be your strongest point...
excusing myself from this thread...
Quote:
Unless I'm mistaken, then...sowwyyyy
Seems you dont read well...
maybe this helps?
Keep wankin'...maybe that'll help
Peace...for those that understand what it is...
Edit
Quote:
a4z has not made any friends yet
figures...added to my ignore list, so we dont clash anymore...distance seems the safer option...
Last edited by ButterflyMelissa; 08-30-2015 at 04:02 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.