|
Re: Question about compiling some C++ code.: msg#00225gcc.help
Note it makes a difference what you name your file. If you name your file something.c, then gcc is invoked, and the code is compiled as if it were a C program, so standard C++ libraries are not linked automatically. If you name something on the other hand something.cpp, g++ is used, and the code is compiled as C++ code, linking libstdc++ and making C++ functions available... Wayne Keen |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Question about compiling some C++ code.: 00225, Mihnea Balta |
|---|---|
| Next by Date: | gcc-3.3 chokes on pthreads headers: 00225, mramirez |
| Previous by Thread: | Re: Question about compiling some C++ code.i: 00225, Mihnea Balta |
| Next by Thread: | gcc-3.3 chokes on pthreads headers: 00225, mramirez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |