On 28.03.2011 14:35, Julia Jacobson wrote: > In order to run applications compiled with Visual C++ (2008 Express) on other > Windows computers without distributing any DLLs, I think one has to use the > "Multithreaded /MT" option under Project -> Properties -> Code Genereation > -> Runtime. > When compiling a minimal Hello World C++ console program, everything works > fine. > When compiling the Hello World C++ application (works fine when using the > "Multithreaded-DLL /MD" option), Visual C++ complains about already defined > symbols in MSVCRT.lib. > However, when I tell Visual C++ to ignore MSVCRT.lib, it complains about > unresolved external references. > So my question is how you compile FLTK applications with Visual C++ without > having to install Microsoft DLLs on other computers to run it there.
I'm not a Visual C++ user, but AFAICT the key is to compile the FLTK library and your application with the *same* setup. I'm not sure what FLTK's default is now, but if you change your app's setup, change FLTK's setup before compiling it (FLTK) as well. This should help. Hint: If you get the message that it *might* help to use this "IGNORE-LIB" (or whatever it's called), don't trust it - compile FLTK with the same ooption as your app, and this should go away. As for the question which one you need to distribute software w/o distributing DLL's I don't know whether this matters at all, as long as you don't use any specific runtime libs that are only distributed with VC2008 or a specific SDK (and that are said by MS to be "redistributable"). Or so... Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

