- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- c under linux
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- Report Inappropriate Content
04-14-2008 03:23 AM
04-14-2008 03:23 AM
Re: c under linux
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP