Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Compiling Errors with C++ / Solaris
Name: BakaNeko Date: May 16, 2003 at 14:46:27 Pacific OS: Solaris CPU/Ram: PIII 450, 256 mb
Comment:
Hi,
I wrote a C++ program in windows that works perfectly now I need to make it work for Solaris. But, when i compile I get the following error. Not sure what the compile is telling me.
top20.cpp:366: warning: name lookup of `i' changed for new ANSI `for' scoping top20.cpp:356: warning: using obsolete binding at `i'
The method is: // Create report void top20::createReport () {
Name: egkenny Date: May 17, 2003 at 10:15:30 Pacific
Reply:
I have seen that error explained as meaning you used a variable outside of its scope. For example: --------- for(int i=0;i<100;i++) { ... } index = i; // not valid with new ANSI --------- With the old standard i was still valid after the for loop. According to the new ANSI standard i goes out of scope after the for loop.
Summary: Hi, I am getting this error, gcc: Compilation of header file requested. Not sure what it means. Everything else seem to be fine. Thanks, Joseph ...
Summary: Hello , I am trying to compile my c program using make file. But i am getting the foll errors. Kindly help me out make -f pmls.mk cc -Aa -g +z -D_HPUX_SOURCE -Dhpux -I/opt/xelp/prg/premier/in...
Summary: I'm trying to make a program to convert some text files to webpages. It does the DIR command and puts it in a text file. Then it gets one line at a time from the text file to get the file names of the...