From: Lars Kristiansson <md8lars@mdstud.chalmers.se>
To: <gcc-help@gcc.gnu.org>
Subject: Makefile
Date: Sun, 25 Feb 2001 23:29:00 -0000 [thread overview]
Message-ID: <Pine.SOL.4.30.0102260818520.673-100000@fraggel39.mdstud.chalmers.se> (raw)
Hi!
I have some problems with the attached Makefile:
When I compile and link all as in the rule uppg4: everything works fine,
but I do want to split up compiling and linking, so I can divide my huge
main file uppg4.c into different objectives s.a. uppg4.o, myrnd.0 and so
on, to link them together later. Also I need to check for errors during my
development.
So I divided everything up, using rules uppg41.o: and uppg41:
Now I encounter the errors:
--------------------------------------------------------------------
fraggel39> make uppg41
gcc -I/users/mdstud/graf/old1999/OPENGL99 -I/usr/X11/include -pipe
-fpic -O3 -DSHM -c -c uppg4.c
gcc -O3 -c myrnd.c
gcc -L/usr/openwin/lib -L/opt/SUNWmotif/lib
-L/usr/src/md/pd/X11/libs/glut-3.7/lib/glut
-L/usr/src/md/pd/X11/libs/glut-3.7/lib/mui -R/usr/openwin/lib
-R/usr/local/lib -R/usr/X11/lib -R/opt/SUNWmotif/lib -lmui -lglut -lGLU
-lGL -lm -L/usr/ucblib -R/usr/ucblib -lX11 -lXm -lXmu -lXext -lnsl
-lsocket -lucb -lgen -o uppg4 uppg4.o myrnd.o
Undefined first referenced
symbol in file
glutCreateWindow uppg4.o
glutMainLoop uppg4.o
glutDisplayFunc uppg4.o
glutReshapeFunc uppg4.o
glutMouseFunc uppg4.o
glutInitDisplayMode uppg4.o
glutMotionFunc uppg4.o
glutPostRedisplay uppg4.o
glutInitWindowSize uppg4.o
ld: fatal: Symbol referencing errors. No output written to uppg4
*** Error code 1
make: Fatal error: Command failed for target `uppg41'
--------------------------------------------------------------------
and I don't know what's wrong? Everything is included and linked just as
it should be supposed to, but the libraryfunctions in glut doesn't seem to
be found at all!
There must be a way to divide large items up...
___M_V_H______________Dr_Xem@cs________________lksign v2.0__
"As men's prayers are a disease of the will, so are their creeds
a disease of the intellect." - [Ralph Waldo Emerson]
Dr_Xemacs, the one and only! (aka Lars Kristiansson)
md8lars@mdstud.chalmers.se dr_xemacs@telia.com
http://www.mdstud.chalmers.se/~md8lars ICQ : 25152178
next reply other threads:[~2001-02-25 23:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-25 23:29 Lars Kristiansson [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-11-15 5:32 Makefile kabir.patel
2001-11-16 2:47 ` Makefile Frank Schafer
2001-11-14 11:32 Makefile kabir.patel
2001-11-15 5:34 ` Makefile Rupert Wood
2001-02-26 3:15 makefile David Korn
2001-02-25 23:39 makefile Lars Kristiansson
1999-12-07 1:36 Makefile Ben A. Abderrazek
1999-12-31 22:24 ` Makefile Ben A. Abderrazek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.4.30.0102260818520.673-100000@fraggel39.mdstud.chalmers.se \
--to=md8lars@mdstud.chalmers.se \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).