Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading PNG_IMAGe failed #4

Closed
Jomme5 opened this issue Dec 14, 2018 · 2 comments
Closed

Loading PNG_IMAGe failed #4

Jomme5 opened this issue Dec 14, 2018 · 2 comments

Comments

@Jomme5
Copy link

Jomme5 commented Dec 14, 2018

$ fltk-config --ldflags --compile hallo_test.cxx

g++ -I. -I./png -I./zlib -I./jpeg -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -o 'hallo_test' 'hallo_test.cxx' -static ./lib/libfltk.a -lole32 -lws2_32 -lcomctl32 -luuid
D:\Tmp\ccw4NMb9.o:hallo_test.cxx:(.text+0xe8): undefined reference to `Fl_PNG_Image::Fl_PNG_Image(char const*)'
collect2.exe: error: ld returned 1 exit status

What do I have to change in the fltk-config?

@Jomme5 Jomme5 closed this as completed Dec 14, 2018
@Jomme5
Copy link
Author

Jomme5 commented Dec 14, 2018

--libs --use-images

@Albrecht-S
Copy link
Member

I'm glad you found the solution yourself.

In case someone else is reading this and for future questions I'd like to add that this (GitHub Issues) is not the correct place to ask for FLTK user help. Please use our mailing list (Google Groups) fltk.general:

https://groups.google.com/forum/#!forum/fltkgeneral

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants