- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: c under linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 10:15 PM
04-10-2008 10:15 PM
[root@linuxguru.symantec.com][ /usr/src/redhat/SOURCES ]gcc abc.cc
abc.cc:10: error: stray ‘\342’ in program
abc.cc:10: error: stray ‘\200’ in program
abc.cc:10: error: stray ‘\234’ in program
abc.cc:10: error: stray ‘\’ in program
abc.cc:10: error: stray ‘\342’ in program
abc.cc:10: error: stray ‘\200’ in program
abc.cc:10: error: stray ‘\235’ in program
abc.cc: In function ‘int main()’:
abc.cc:10: error: ‘Hello’ was not declared in this scope
abc.cc:10: error: ‘Linux’ was not declared in this scope
[root@linuxguru.symantec.com][ /usr/src/redhat/SOURCES ]rm abc.c
rm: remove regular file `abc.c'? y
[root@linuxguru.symantec.com][ /usr/src/redhat/SOURCES ]
* hello.c – Canonical “Hello, world!” program 4 4 */
#include
int main(void)
{
fprintf(stdout, “Hello, Linux programming world!\n”);
return 0;
}
gcc is installed but not able to compile c code ..need help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 10:32 PM
04-10-2008 10:32 PM
Solution/*
not only
*
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 10:53 PM
04-10-2008 10:53 PM
Re: c under linux
#include
#include
#include
#include
#include
#include
int main(void)
{
fprintf(stdout, â Hello, Linux programming world!\nâ );
return 0;
}
have a this code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 12:07 AM
04-11-2008 12:07 AM
Re: c under linux
instead of whatever complicated,
good-looking (I'm sure), exotically-coded
junk you have in there.
What are you using as an editor, Microsoft
Word?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 02:58 AM
04-11-2008 02:58 AM
Re: c under linux
I'll guess that you've cut and pasted some code, and managed to include some invisible control sequences in your source code...
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2008 03:23 AM
04-14-2008 03:23 AM