RE: [Dev-C++] New to C, New to dev cpp, New to the list
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: stephane w. <ste...@li...> - 2004-02-04 22:58:03
|
Try this :
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(int argc, char *argv[])
{
printf("hello world, i'm not the best, yet\n");
system("PAUSE");=09
return 0;
}
-----Message d'origine-----
De=A0: dev...@li...
[mailto:dev...@li...] De la part de andre
Envoy=E9=A0: mercredi 4 f=E9vrier 2004 23:31
=C0=A0: Scott Simontis
Cc=A0: dev...@li...
Objet=A0: Re: [Dev-C++] New to C, New to dev cpp, New to the list
Thanks for your quick answer.
I'll follow your advice and look for a book.
I tried what you suggested, startng a new C++ project, and i got the=20
same error, line 2, Unable to run program file.
Here is the compilation log :
Compilateur: Default compiler
Building Makefile: "C:\devc\Makefile.win"
Ex=E9cution de make...
make.exe -f "C:\devc\Makefile.win" all
Ex=E9cution termin=E9e
Compilateur: Default compiler
Building Makefile: "C:\devc\Makefile.win"
Ex=E9cution de make clean
Ex=E9cution termin=E9e.
Thanks,
Andr=E9
Scott Simontis wrote:
> I wouldn't reccomend C. Try at least using C++ code. If you want C, =
make=20
> sure you are using the .c format or it won't work. Also, make sure you =
> created a new project. If you want to do it the C++ way, create a new=20
> C++ console project and type in this:
>=20
> #include <cstdio>
> using namespace std;
>=20
> int main()
> {
> cout << "Hello, world!\n";
> return 0;
> }
>=20
> I would also reccomend getting a good C++ book. Get C++ From the =
Ground=20
> Up 2nd Edition if you can. It is a great book and what I am using.
> andre wrote:
>=20
>> Hi everybody,
>>
>> I can say "still new in englisg too".
>>
>> Trying my first and shorter program in C, "hello world", by cutting=20
>> and pasting the source below in dev cpp manual,
>>
>> #include <stdio.h>
>>
>> main()
>>
>> {
>> printf("hello world, i'm not the best, yet");
>>
>> }
>>
>> i receive the following error, pasted from the compiler's message=20
>> window down devcpp main window.
>>
>> line File Message
>> 2 C:\devc\2 unable to run program file.
>>
>> I downloaded mingw and msys
>> I compiled my source without errors but when i try to "make" it, i=20
>> have the errors below :
>> myfile.o:1: warning: NUL character seen; rest of line ignored
>> myfile.o:1: *** missing separator. Stop.
>>
>> I'm running dev-c++ 4.9.8.0
>> Windows XP Pro SP1a
>>
>> TIA,
>>
>> Andr=E9
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> The SF.Net email is sponsored by EclipseCon 2004
>> Premiere Conference on Open Tools Development and Integration
>> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>> http://www.eclipsecon.org/osdn
>> _______________________________________________
>> Dev-cpp-users mailing list
>> Dev...@li...
>> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>>
>=20
>=20
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|