-
Junior Member
registered user
Compiling with Knoppix
Hi,
I'm trying to compile a set of C files while running Knoppix in the CD-ROM. At the first glance I made it. But there are some questions - if someone is willing to answer, of course - that I have, because the compilation is not fully functional:
1)How do I make sure that all the libraries needed ( my libraries and the system's ones ) are included in the final executable?
2) How can I indicate a different path for gcc get the INCLUDE files?
3) why won't ./configure work?
4) How do I run the program in the Knoppix environment? ./program ? If the previous one doesn't work...
5) Is there a good web source of information about compiling with Knoppix ?
The makefile I'm using is something like this:
Code:
LIBS= -lm
CC=gcc
# For normal use
#CFLAGS=-ansi -pedantic -Wall -s -O
# For debugging
CFLAGS=-ansi -pedantic -Wall -g -static
TARGETS = sephem look
# Now the actual rules
all: $(TARGETS)
clean:
-rm *.o
-rm *.log
-rm $(TARGETS)
sephem: sephem.o astrolib.o astrocon.o support.o
$(CC) $(CFLAGS) -o sephem sephem.o astrolib.o astrocon.o \
support.o $(LIBS)
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
Regards,
Kepler
Similar Threads
-
By cfish in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 05-08-2005, 05:35 AM
-
By kepler in forum General Support
Replies: 0
Last Post: 11-06-2004, 01:19 PM
-
By Frost in forum General Support
Replies: 7
Last Post: 06-09-2004, 08:59 PM
-
By paugq in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 05-10-2004, 05:09 AM
-
By kentborg in forum Customising & Remastering
Replies: 1
Last Post: 03-04-2003, 04:49 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire
$36.99
Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller
$84.99
Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 For 2.5" SATA HDD SSD UASP
$56.25
Yottamaster 5 Bay RAID Hard Drive Enclosure Type-C B For 2.5" 3.5" SATA HDD SSDs
$131.59
Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile
$17.99
LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault
$39.00
HP 462976-001 460499-001 4.8v 650mAh Raid Controller Battery
$20.00
LSI 8 Port 6Gbps PCIe 3.0 External SAS RAID Card w/ 1GB CacheVault & Low Profile
$29.00
UCSC-RAID-M5 CISCO 12Gb/s SAS HBA Raid Controller w/Battery & Cable
$69.99
Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 Type B For 3.5" SATA HDDs
$69.91