[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Several issues about Knoppix



Hi,

I 've already posted some of my doubts in the Knoppix forum, but I'm not
getting any answers - no problem with that. The first problem is running a
compiled file in the Knoppix environment - I've tryed "file", "./file",
etc...but the console tells me that I can't execute binaries ( even if I
chmod 755 or +x the file to run ).
Second, there's the problem of "configure" - doesn't run this way, neither
"./configure".
Third, is a general question: I've made a Makefile to compile 2 programs.
The problem is that one of them if Compiled with DJGPP ( GCC for win32 )
works, but if compiled with Knoppix or GCC in a Linux environment, works
only 60%, giving on the 40% left of options a "segmentation fault" as error.
So, I tryed to use my "include" files from DJGPP - who knows if the problem
is there. The Makefile is like this:

#Start
CC=gcc

CFLAGS = -ansi -pedantic -Wall -g -I/other/dir/include

TARGETS = sephem look

all: $(TARGETS)

clean:
rm *.o
rm *.log
rm *.exe


sephem: sephem.o astrolib.o astrocon.o support.o
$(CC) $(CFLAGS) -o sephem sephem.o astrolib.o \ astrocon.o support.o

look: look.o
$(CC) $(CFLAGS) -o look look.o $(LIBS)

sephem.o: sephem.c astrolib.h support.h
$(CC) $(CFLAGS) -c sephem.c

look.o: look.c
$(CC) $(CFLAGS) -c look.c

astrolib.o: astrolib.c astrolib.h astrocon.h support.h
$(CC) $(CFLAGS) -c astrolib.c

astrocon.o: astrocon.c astrocon.h
$(CC) $(CFLAGS) -c astrocon.c

support.o: support.c support.h
$(CC) $(CFLAGS) -c support.c
#End

It seems to be compiling sephem and the *.o files, but in a glance outputs
several error ( like telling that "sin" is not defined, although the <math>
is there ).

I'm a little confused about all this.

Can someone help me?

Best regards,

Rui Fernandes



Reply to: