Hi Maximilian!

Thank you very much!! Exactly the way you explained it, it worked!!

Bye

David

> Hi David!
>
> You actually do not have a difficult problem :), you just forgot to link
> the .lib-file to your application, so the linker does not know, where to
> find the FL::run() and so on. To fix this, do the following:
>
> 1) Adjust your lib-Directory with
> Project -> Properties -> Linker -> additional lib directories:
> (deutsch: Projekt, Eigenschaften, Linker, irgendwas
> bibliotheksverzeichnisse)
> Add the name of the path, where fltkd.lib (debug-target) or fltk.lib
> (release-target) is located (usually fltk-1.1.7\lib\ )
> 2) Tell the linker to link the lib fltkd.lib or fltk.lib at:
> Project -> Properties -> Linker -> Input -> Additional depenedencies
> (deutsch: projekt, eigetnschaten, linker, eingabe, zus�tzliche
> abh�nigkeiten)
>
> 3) compile and link the program.
>
> That should help.
>
> David Flade schrieb:
> > Hello!
> >
> > (Luckily this time my Posts seem to be displayed..)
> >
> > I have a big problem and i invested already several hours on it with only 
> > little success.
> >
> > Recently i developed a simple FLTK-Project (Displaying a cube which you can 
> > rotate along all axes) with Linux. Everything worked fine.
> >
> > Now, i want to develop the same Project with Windows by using "Visual 
> > Studio 2005 Professional". I am completely a beginner with Visual Studio.
> >
> > To be able to use FLTK on Windows i downloaded the .zip-file it from here. 
> > After that, i built it by double-clicking on fltk.dsw which is located in 
> > the directory /visualc (well that's written in the FLTK manual on page 6..).
> >
> > Now the steps that i tried to get started my project:
> >
> > 1. I started a new project: Visual C++/Win32-Project/Console 
> > Application/Empty Project (Yes i want to be able to start the program at 
> > the Console even though it is a GUI-Application..I hope it's ligitmate to 
> > that).
> > 2. Under "Properties/Configuration Properties/[C/C++]/General" (i don't 
> > know exactly in english, because i use a german version) I adjusted the 
> > Include-Directories to the directory where the "FL" directory is located, 
> > so that i can write <FL/Fl.H> in my source-code.
> > 3. Furthermore, I set the Preprocessor-Flags to 
> > "WIN32;_DEBUG;_CONSOLE;FL_DLL". I should add "FL_DLL" according to the FLTK 
> > manual on page 7..
> > 4. After that i built my project which should (only now for the beginning) 
> > only show a Fl_Window:
> >
> > //main.cpp:
> >
> > #include <FL/Fl.H>
> > #include <FL/Fl_Window.H>
> >
> > int main(int argc, char **argv)
> > {
> >   Fl_Window *window = new Fl_Window(512, 512, 512, 512,"CubeWindow");
> >   window->show();
> >
> >   return Fl::run();
> > }
> > 5. 10 error-messages poped up such as follows:
> >
> > error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
> > ""__declspec(dllimport) public: static int __cdecl Fl::run(void)" ([EMAIL 
> > PROTECTED]@@SAHXZ)" in Funktion "_main".    main.obj
> >
> > "Verweis auf nicht aufgelöstes externes Symbol" could be rendered in 
> > english as "Link on non-resolved external symbol"
> >
> > The other 9 errors had the same problem of "non-resolved external symbol".
> >
> > The directory where my program is located is C:\MyProject\mycube\
> > The directory where the whole FLTK-stuff is located is C:\FLTK\fltk-1.1.7
> >
> > A "fltkdlld.dll" is located in C:\FLTK\fltk-1.1.7\visualc
> >
> > Maybe you know an answer to my problem..
> >
> > Thanks!
> >
> > David
> >

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to