FLTK logo

Re: [fltk.general] static linking for Windows + MinGW-w64(MSYS2) + Eclipse

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: static linking for Windows + MinGW-w64(MSYS2) + Eclipse Albrecht Schlosser Sep 23, 2020  
 
On 9/23/20 12:01 PM anonymous wrote:

I'm trying to build a hello.cxx code(sample code in the FLTK doc) using Eclipse, with MSYS2 packages mingw-w64-x86_64-toolchain and mingw-w64-x86_64-fltk.
Looks like linking comctl32 library does not work properly. Here's the log:

Info: Internal Builder is used for build
g++ -static -o hello.exe "src\\hello.o" -lcomctl32 -lfltk -lgdi32 -lole32 -luuid C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../lib\libfltk.a(Fl.o):(.text$_ZL7WndProcP6HWND__jyx+0x41a): undefined reference to `__imp__TrackMouseEvent'
collect2.exe: error: ld returned 1 exit status

I have no idea why this error occur even I link the comctl32 library. Could anyone give an advice for this?

Try to change the linking order, put -lcomctl32 after -lfltk, i.e. where the other Windows libs are in your commandline.

PS. Is there any way to use fltk-config script in Eclipse? The IDE simply could not find the script if I manually add it using Linker flags.

Sorry, no idea.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/70907ace-d9f2-b850-1868-2ad079ded34e%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.