On 30 Sep 2009, at 17:45, hamed wrote:

> g++.exe -c Untitled1.cpp -o Untitled1.o -I"C:/Dev-Cpp/lib/gcc/ 
> mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  - 
> I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/ 
> 3.4.2"  -I"C:/Dev-Cpp/include"
>
> g++.exe Untitled1.o Project1_private.res -o "Project1.exe" -L"C:/ 
> Dev-Cpp/lib" -mwindows -lfltk -lole32 -luuid -lcomctl32 -lwsock32 -lm
>
> C:/Dev-Cpp/lib/libfltk.a(Fl_Browser.o)(.data$_ZTI9Fl_Slider 
> [typeinfo for Fl_Slider]+0x0):Fl_Browser.cxx: multiple definition  
> of `typeinfo for Fl_Slider'
> Untitled1.o(.rdata$_ZTI9Fl_Slider[typeinfo for Fl_Slider] 
> +0x0):Untitled1.cpp: first defined here
> C:/Dev-Cpp/lib/libfltk.a(Fl_Browser.o)(.text$_ZTS9Fl_Slider 
> [typeinfo name for Fl_Slider]+0x0):Fl_Browser.cxx:

There must be something wrong with your setup to produce this effect  
- why is the compiler finding the definitions of the fltk objects  
inside your source file? That is very strange indeed, there must be  
some odd paths thing or something going on.

Certainly, the example code you psoted builds just fine for me, so  
there is nothing wrong with the code.

Does your dev-C++ setup build other code OK?


> I think FLTK does't work in DEV-C++

That is very odd, as many others have used it with some success.
The underlying tools for dev-C++ on Windows is mingw, which is what I  
use for Windows builds and it works fine.

See this howto for an alternate approach to getting mingw working  
well under Windows... It;s a bit dated but still works fine.

http://www.fltk.org/articles.php?L598



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

Reply via email to