Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-28-2001, 05:56 AM   #1
Senior Member
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
glut compile probs

this isn't at all urgent, but i can't find any good way around a compile problem i've been having with the glut 3.7 demos i downloaded a few days ago.

during "make", the compiler returns a error something like :

sourcefile.c : error - function "random" already defined in stdlib ...ect

and, when i checked out the source, there was already

#undef random
long random(void);

so, the compiler should have undefined the function, but didn't. has anyone else seen this, or know of a compiler or linker problem that would cause this?

i got this to work by just getting rid of the new random function, but i would really like to know why the undef wasn't working.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Netgear FA511- compile probs Quido Linux - Hardware 4 10-06-2005 07:38 AM
boot probs after compile imagineaxion Debian 2 06-17-2005 09:02 AM
[c++ / glut] program will not compile (missing references) xuniL1 Programming 2 09-21-2004 04:17 AM
Glut Compile Error -- Please Help BenRichards Linux - Software 1 05-28-2004 04:26 PM
Compile probs, IRCD OmEgA-X Linux - Software 0 08-07-2003 05:06 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration