This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |