c++ - "using namespace std;" declaration fails
- Jordon Hirshon (7/7) Apr 11 2010 I'm trying to compile a simple ".cpp" file with the command line: sc fil...
- Walter Bright (2/9) Apr 13 2010 Please post the exact source code of the file you're trying to compile.
- Jordon Hirshon (11/11) Apr 13 2010 Here's the file I'm trying to compile. I'm using version 8.29.21n of th...
I'm trying to compile a simple ".cpp" file with the command line: sc filename -I/dm/stlport/stlport. It produces: "Error: identifier expected" at the semicolon of std. I browsed through some of the posts on the forum, but nothing worked. Any suggestions? Thanks, Jordon Hirshon
Apr 11 2010
Jordon Hirshon wrote:I'm trying to compile a simple ".cpp" file with the command line: sc filename -I/dm/stlport/stlport. It produces: "Error: identifier expected" at the semicolon of std. I browsed through some of the posts on the forum, but nothing worked. Any suggestions?Please post the exact source code of the file you're trying to compile.
Apr 13 2010
Here's the file I'm trying to compile. I'm using version 8.29.21n of the Digital Mars compiler. I'm using this command to compile: dmc test_hello -I\dm\stlport\stlport Thanks for your help. #include <iostream> using namespace std; int main() { cout << "Hello world\n"; }
Apr 13 2010