GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Apr-2007, 03:57
n2liquid n2liquid is offline
New Member
 
Join Date: Apr 2007
Posts: 2
n2liquid is on a distinguished road

Coding DLLs with FLTK


Hi guys, I'm new here. It's the first time I ever used fltk, so don't bother with me.

I'm needing to code a plugin for MilkShape 3D, but I really, from the "inside of my soul", hate WinAPI. But I still need to create forms.
So I found fltk, but I was wondering if I could compile a DLL using it.
I'm using Dev-CPP. This is what happens:
Code:
C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x783):Fl.cxx: undefined reference to `DeleteObject@4' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x17b9):Fl.cxx: undefined reference to `DeleteObject@4' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x190a):Fl.cxx: undefined reference to `CreateRectRgn@16' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x1930):Fl.cxx: undefined reference to `CombineRgn@16' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x193b):Fl.cxx: undefined reference to `DeleteObject@4' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x1975):Fl.cxx: undefined reference to `CreateRectRgn@16' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x198e):Fl.cxx: undefined reference to `DeleteObject@4' C:/Dev-Cpp/lib/libfltk.a(Fl.o)(.text+0x75f):Fl.cxx: undefined reference to `GdiFlush@0' C:/Dev-Cpp/lib/libfltk.a(Fl_x.o)(.text+0x1151):Fl_x.cxx: undefined reference to `CreateRectRgn@16' .........
And well,.. You got it.
Tons of linker errors.

So I saw in some site(maybe in the official), that I needed to #define FL_DLL, because there was different nomenclature for DLL compilations. So I did, and this was the result:
Code:
PlugInMain.o(.text+0x6a):PlugInMain.cpp: undefined reference to `_imp___ZN9Fl_WindowC1EiiPKc' PlugInMain.o(.text+0x178):PlugInMain.cpp: undefined reference to `_imp___Z25fl_define_FL_SHADOW_LABELv' PlugInMain.o(.text+0x19b):PlugInMain.cpp: undefined reference to `_imp___ZN8Fl_Group3endEv' PlugInMain.o(.text+0x1b8):PlugInMain.cpp: undefined reference to `_imp___ZN9Fl_Window4showEiPPc' PlugInMain.o(.text+0x1bf):PlugInMain.cpp: undefined reference to `_imp___ZN2Fl3runEv' PlugInMain.o(.text$_ZN6Fl_BoxC1EiiiiPKc[Fl_Box::Fl_Box(int, int, int, int, char const*)]+0x30):PlugInMain.cpp: undefined reference to `_imp___ZN9Fl_WidgetC2EiiiiPKc' PlugInMain.o(.text$_ZN6Fl_BoxC1EiiiiPKc[Fl_Box::Fl_Box(int, int, int, int, char const*)]+0x3a):PlugInMain.cpp: undefined reference to `_imp___ZTV6Fl_Box'
D4mn

I really got no idea on what to do.
Maybe folks here could gimme some assistance.

And please apologize my bad english, I'm brazilian.
Thanks!
 
 

Recent GIDBlogToyota - 2008 November Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FLTK && fluid In Motion cable_guy_67 FLTK Forum 4 20-Mar-2008 04:52
fltk or FL jafar FLTK Forum 1 11-Sep-2006 08:17
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 16:41
FLTK with GLUT usmsci FLTK Forum 4 26-Nov-2004 17:21
Welcome to the FLTK Forums dsmith FLTK Forum 0 08-Sep-2004 07:58

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:11.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.