Computing.Net > Forums > Linux > problems compiling a program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

problems compiling a program

Reply to Message Icon

Name: geo
Date: June 30, 2002 at 20:18:14 Pacific
Comment:


Hello, I am getting some errors when I try to install a program and I am not
sure what is happening as I am rather new to linux. I use the command
'make'and get alot of output and then this:
--------------------
gcc -I../.. -I../../kernel/sources -g -O -c symtab.c

symtab.c: In function 'st_init':

symtab.c:260: 'MAXFLOAT' undeclared (first use in this function)

symtab.c:260:(each undeclared identifier is reported only once for each
function it appears in.)

make[1]: *** symtab.o Error 1

make[1]: Leaving directory '/root/SNNSv4.2/tools/sources'

make: *** [compile-tools] Error 2
------------------
Now someone correct me if I am wrong about this. Here is what I think is
happening. I am guessing that when I run the 'make' command that this causes a
bunch of files to compile just like you would need to in windows. So that
would mean that the 'gcc .... symtab.c' line at the top is where the 'GNU c
compiler' is trying to compile the symtab.c file. It, however, found an error
in this file in the st_init() function that caused it to stop compiling (the
error being an instance of an undeclared variable called MAXFLOAT)? Is this
correct, and how do I fix such a problem? I can't seem to find the file
symtab.c or many of the other files that compile before it without probelmbs.
Where are those files (I looked in ../kernel/sources)?



Sponsored Link
Ads by Google

Response Number 1
Name:
Date: June 30, 2002 at 20:58:23 Pacific
Reply:

Ok, so I found the file I think (there was another version of the file in /root/bison-1.34/src/sources/symtab.c but I think the one I want is in /root/SNNSv4.2/tools/source/symtab.c). And it apears to make a refference to the variable MAXFLOAT without declaring an instance of that variable (which is a variable defined in ). It does not say anything in symtab.c about what the value of MAXFLOAT should be or what it is used for so I do not have a clue where to go from here. Any ideas?


0

Response Number 2
Name:
Date: June 30, 2002 at 21:00:08 Pacific
Reply:

MAXFLOAT is a variable defined in (math.h). They don't allow you to post carrots in here.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: problems compiling a program

Problem compiling C program www.computing.net/answers/linux/problem-compiling-c-program/14973.html

How do you instal a program? www.computing.net/answers/linux/how-do-you-instal-a-program/21416.html

Compiling programs and Limewire www.computing.net/answers/linux/compiling-programs-and-limewire/9033.html