[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A problem in using g++
From: |
nudthutao |
Subject: |
A problem in using g++ |
Date: |
Sun, 01 Apr 2001 00:15:49 +0800 |
help!help!
I am here waiting for your great help. Thanks in advance.
A simple program as the following:
//try.cpp
int main()
{
for(int i=0,j=0;i<10;i++)
j=j+i;
return j;
}
To compile it, use the command "g++ try.cpp"
and you will get the message like "lookup j.......obsolete variable j". No
executable file a.out appeared.
Why? How should I compile it and get the executable file without changing the
program itself?
You help will be a great favor to me. If you will, you can write to
"nudthutao@sina.com"
Also, I compiled the program both under the Redhat Linux 7.0 and Bluepoint
Linux 2.0, which is also base on the former, and only successed in case of
Bluepoint Linux 2.0.
How does this happen?
______________________________________
===================================================================
ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn)
ÍøÀïÑ°Ëýǧ°Ù¶È!ûÓÐ"ÁÄÓÑËÙÅä",ÔõÄÜ"³ÉË«³É¶Ô"? (http://newchat.sina.com.cn)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- A problem in using g++,
nudthutao <=