permutations
02-01-2004, 08:44 PM
I'm using Knoppix because I have a Web site with a Unix server, a CGI program written in C, and a Windows development system. I needed a way to compile my CGI for Unix. But I'm having an AWFUL time. I need help BADLY. I'm very unfamiliar with Unix-isms such as all the different flavors of makefiles and configure files. I have no idea what these things do--pages and pages of indecipherable code. And I'm also lost when it comes to KDevelop. I can't figure out what all that auto-generate stuff is.
I know how to write a makefile that says simply what the input files are and where the libraries I want to link to are, but I can't for the life of me figure out how to communicate this to KDevelop, which is insistent on generating its own makefiles using all these other weird files that I can't decipher.
I finally managed to get the project set up to the point where I could try to compile, but I have two serious problems and not the hint of a solution:
(1) I'm getting a zillion errors complaining about every trigonometric function I call (sin(), cos(), etc.). I have math.h included at the top and this compiled fine on Windows. I also confirmed that math.h is on the Knoppix CD, though I can't begin to say if it's in the right place or if I need to do something special to point to it (evidence suggests I should). The Help file is not searchable.
(2) KDevelop does not know about the special library I need to link to, though I tried to put this in the makefile that it (of course) ignored. HOW DO I TELL IT ABOUT MY LIBRARY???? (I did manage, by some miracle, to compile the library.)
I wish I could find a consise overview of KDevelop and its weirdness for reasonably intelligent developers coming from the Windows platform, but I can find NOTHING. Please can someone help me??????? What I want to do is so simple, and it looks like it may take half my lifetime. It would be worlds easier to just get a Windows server.
I know how to write a makefile that says simply what the input files are and where the libraries I want to link to are, but I can't for the life of me figure out how to communicate this to KDevelop, which is insistent on generating its own makefiles using all these other weird files that I can't decipher.
I finally managed to get the project set up to the point where I could try to compile, but I have two serious problems and not the hint of a solution:
(1) I'm getting a zillion errors complaining about every trigonometric function I call (sin(), cos(), etc.). I have math.h included at the top and this compiled fine on Windows. I also confirmed that math.h is on the Knoppix CD, though I can't begin to say if it's in the right place or if I need to do something special to point to it (evidence suggests I should). The Help file is not searchable.
(2) KDevelop does not know about the special library I need to link to, though I tried to put this in the makefile that it (of course) ignored. HOW DO I TELL IT ABOUT MY LIBRARY???? (I did manage, by some miracle, to compile the library.)
I wish I could find a consise overview of KDevelop and its weirdness for reasonably intelligent developers coming from the Windows platform, but I can find NOTHING. Please can someone help me??????? What I want to do is so simple, and it looks like it may take half my lifetime. It would be worlds easier to just get a Windows server.