[Dev-C++] More help with Makefile, please
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Maya <Esc...@ne...> - 2004-01-23 08:29:14
|
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)
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|