Chat on IRC |
How to programming under LINUX
Posted by csspcman [send private reply] at February 13, 2002, 05:42:36 PM
I'v recently installed LINUX REDHAT ver 7.1 on my system to experience c/c++ programming under that , but when I want to compile my program it says "-lgcc not found ".
what is this -lgcc I didn't find it on RPM packages list of REDHAT ver 7.1 tnx
Posted by taubz [send private reply] at February 13, 2002, 06:48:57 PM
When exactly are you experiencing this problem? Do you type in "gcc filename" and then it gives you that?
The -l option to gcc (the compiler) tells gcc the name of a library to compile into the program, so it sounds like somewhere along the lines "gcc" is being used as the name of a library. - taubz
Posted by gian [send private reply] at February 14, 2002, 12:15:18 AM
BTW. LINUX is not an acronym, and therefore can be safely spelt "linux" or "Linux"
Posted by sphinX [send private reply] at February 14, 2002, 12:31:19 AM
sounds like your GCC installation is incorrect, I would recommend just installing *gcc*.rpm again.
Posted by Stanly [send private reply] at February 18, 2002, 07:42:39 PM
Try using the g++ compiler
Posted by unknown_lamer [send private reply] at February 19, 2002, 03:07:21 PM
-l == link. GCC for roothack 7.1 is 2.96 (the evil one that isn't compatible with 2.95 and 3.0...), so it dynmically links to libgcc (hence the -l). Libgcc contains some important stuff that your app needs to even think about running (you can live with the libc, but not without libgcc). So, you don't have gcc installed all the way. Try looking for a gcc-dev package or something similar (I don't know what redhat calls their package, if you were only using Debian...I could just say "apt-get install c++-dev" and all would be done!)
Register as a new user | ||||||||