You might want to add a -lfltk to you linker parameters. Or use the
Project Options Parameter panel to add a fltk library file. (Don't know
which one as I've never usef fltk myself)
wkr,
Gerke
Maya wrote:
> Hey Matt!
> I modified the 'Makefile' as you suggested. It compiles, but the
> linker complains saying that there is an undefined reference to
> 'FL_[everything]::[everything]', by 'everything' I mean all references
> to the FLTK library.
>
> What am I doing wrong?
>
>
> Thanks!!
>
>
> Here is an example of my Makefile.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # fltk's Makefile GNU make 3.80
> # Compiler
> CPP = g++.exe #3.3.1
>
> #Flags
> OPTIONS = -Wall -Wctor-dtor-privacy -DWIN32
>
> #Excecutable name
> EXEC = fltk_test.exe
>
> #Variables
>
>
> #Objects to be created
> OBJS = main.o
>
> #Libraries to be included
> LDLIBS = -lfltk -lole32 -luuid -lcomctl32 \
> -lwsock32 -lm -lgdi32 -mwindows
>
> $(EXEC): $(OBJS)
> $(CPP) $(LDLIBS) $(OBJS) -o $(EXEC)
>
> main.o: main.cpp
> $(CPP) $(OPTIONS) -c main.cpp
>
> .PHONY: clean
>
> clean:
> rm -f $(OBJS) $(EXEC)
>
|