Issue with GCC

Prasad Karnik ppk@prairiecomm.com
Thu Apr 27 16:07:00 GMT 2000


Title: Issue with GCC





I am trying to port Visual C++ code to GCC 2.95.2 on Linux. In doing that, I have encountered some problems that may easily be replicated with the following execution. Am I not linking with a particular library? Please let me know what I am doing wrong.  Thank you!

*********************************************************************


gcc -o complextest -fhonor-std complextest.cpp -lm -lobjc -lstdc++


complextest.cpp: In function `int main(...)':
complextest.cpp:4: `cout' undeclared in namespace `std'
complextest.cpp:4: `endl' undeclared in namespace `std' 


*********************************************************************


complextest.cpp:
---------------
#include <iostream>


void main() {
    std::cout << std::endl;
}  
 
********************************************************************* 



Prasad Karnik
Staff Engineer
PrairieComm, Inc.
1600 Golf Road, Suite 600
Rolling Meadows, IL 60008
(847) 871-1878
(847) 871-1900 fax
prasad.karnik@prairiecomm.com
www.prairiecomm.com


 


SmallLogo.jpg



More information about the Gcc mailing list