![]() |
|
#1
|
|||
|
|||
loading imagei have recently started using fltk. i like to load an image into my window.however i get this liker error.
[Linker error] undefined reference to `fl_register_images()' [Linker error] undefined reference to `Fl_JPEG_Image::Fl_JPEG_Image(char const*)' here is a short version of my program: CPP / C++ / C Code:
Last edited by LuciWiz : 12-May-2005 at 09:23.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
||||
|
||||
|
Quote:
Hello and welcome asal. You just need one more switch to compile this: Code:
Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#3
|
|||
|
|||
|
thanks for your help. is there any way to add these in dev c++ instead of using cygwin?
|
|
#4
|
||||
|
||||
|
Quote:
Hmmm, do you run fltk-config from dev-c++ somewhere with the --ld and --cxx flags (perhaps in the makefile) ? That would be the place to add it. If not, you will have to manually add the image libs to your linker in dev to take care of the problem. Look at the --help stuff for fltk-config. What I usually do is something like this to find what I need from fltk-config. Code:
As you can see it shows what should be linked and you can use that info to add the libs to dev-c++. As you see from my example the libs change when adding the --use-images flag. Hope this helps, Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#5
|
|||
|
|||
|
i added the libs manually and my project works. thank you so much.
|
|
#6
|
|||
|
|||
Re: loading imageHi, I just start to program in C++. I also use dev C++ and fltk, and I would like to know how did u add the the libs manually and which libs, cause i d'on't know how to do it and my project doesn't work.
Thanks for ur answer. |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to do basic image processing using MFC | yuhui | MS Visual C++ / MFC Forum | 5 | 08-Aug-2006 06:43 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 22:47 |
| Writing image to folder | misunderstood | MySQL / PHP Forum | 4 | 17-Jun-2004 08:18 |
| Google Adsense introduces targetted image ads | Div | Advertising & Affiliates Forum | 5 | 23-May-2004 11:59 |
| professional quality image generator | jrobbio | Graphics Forum | 0 | 27-May-2003 05:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The