I need some assistance with compiling my first program with dev-C++. Here's my
basic 3:
1) Version 4
2)Sample application:
//Sample.c
include <stdlib.h>
int main()
{
}
(yes, that's all of it.)
3) Compiler log
c:\dev-c_~1\myfiles\sample.c:1: parse error before /'
In file included from c:\dev-c_~1\myfiles\sample.c:2:
C:\DEV-C_~1\Include\stdlib.h:263: parse error beforewcstombs'
C:\DEV-C_~1\Include\stdlib.h:263: parse error before size_t'
C:\DEV-C_~1\Include\stdlib.h:263: warning: data definition has no type or
storage class
C:\DEV-C_~1\Include\stdlib.h:266: parse error beforesize_t'
C:\DEV-C_~1\Include\stdlib.h:267: parse error before mbstowcs'
C:\DEV-C_~1\Include\stdlib.h:268: parse error beforesize_t'
C:\DEV-C_~1\Include\stdlib.h:268: warning: data definition has no type or
storage class
C:\DEV-C_~1\Include\stdlib.h:269: parse error before size_t'
C:\DEV-C_~1\Include\stdlib.h:274: parse error beforesizeObjCnt'
C:\DEV-C_~1\Include\stdlib.h:275: parse error before sizeObject'
C:\DEV-C_~1\Include\stdlib.h:276: parse error beforesize_t'
C:\DEV-C_~1\Include\stdlib.h:288: parse error before size_t'
C:\DEV-C_~1\Include\stdlib.h:290: parse error beforesize_t'
Compiler Options:
(X) Support all ANSI standard C programs
(X) Attempt to support aspects of traditional C preprocessors
( ) Inhibit all warning messages
Path to save file is "C:\Dev-C++\myfile\Sample.c"
My system is WIndows XP Pro w/Service Pack 3. There is no antivirus software
or spyware applications on this machine. I got the installer from the "SAMS
Teach yourself C in 21 days" book and it does not work as the book describes
nor do I know enough to start taking apart stdlib.h to find what is wrong.
Any assistance would be greatly appreciated. i tried looking in the forums but
was unable to find anything that came close to errors that I am experiencing.
Thank you for your time.
firestorm_v1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The first thing you should do is dump that very old version of Dev-C++. You
should use 4.9.9.2 if you use Dev-C++ at all. Even then it has not been
maintained since 2005, so you ma even want to consider using something else
altogether.
I wanted to thank you for your very helpful suggestions. With your first
suggestion of an upgrade, I was able to compile my test program and the Sample
program in the back of the book. It looks like I'm up and running, ready to
start my education in C.
I've started downloading the MS Express applications (all of them, lol) and
hopefully will get to play with them soon. My only concern is it may be free
now but will this ever become non-free? I'm not exactly a major dev house or
nothing, but don't want the MS lawyers hunting me down at all.
Thank you again.
firestorm_v1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Check the EULAs for the Express editions (I am not a lawyer). They are free
for commercial and non commercial use. 2010 Express is available in Beta, so
it will remain free at least to that version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not a lawyer, but I highly doubt Microsoft will ever place any
restrictions on existing versions of Visual C++. I wouldn't put it past them
to add restrictions to newer editions, but 2008 will almost definitely (99%
chance) remain free.
And anyway, if Microsoft did want to go after you, you would probably just get
a cease-and-desist letter. They wouldn't take you straight to court.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello:
I need some assistance with compiling my first program with dev-C++. Here's my
basic 3:
1) Version 4
2)Sample application:
//Sample.c
include <stdlib.h>
int main()
{
}
(yes, that's all of it.)
3) Compiler log
c:\dev-c_~1\myfiles\sample.c:1: parse error before
/' In file included from c:\dev-c_~1\myfiles\sample.c:2: C:\DEV-C_~1\Include\stdlib.h:263: parse error before
wcstombs'C:\DEV-C_~1\Include\stdlib.h:263: parse error before
size_t' C:\DEV-C_~1\Include\stdlib.h:263: warning: data definition has no type or storage class C:\DEV-C_~1\Include\stdlib.h:266: parse error before
size_t'C:\DEV-C_~1\Include\stdlib.h:267: parse error before
mbstowcs' C:\DEV-C_~1\Include\stdlib.h:268: parse error before
size_t'C:\DEV-C_~1\Include\stdlib.h:268: warning: data definition has no type or
storage class
C:\DEV-C_~1\Include\stdlib.h:269: parse error before
size_t' C:\DEV-C_~1\Include\stdlib.h:274: parse error before
sizeObjCnt'C:\DEV-C_~1\Include\stdlib.h:275: parse error before
sizeObject' C:\DEV-C_~1\Include\stdlib.h:276: parse error before
size_t'C:\DEV-C_~1\Include\stdlib.h:288: parse error before
size_t' C:\DEV-C_~1\Include\stdlib.h:290: parse error before
size_t'Compiler Options:
(X) Support all ANSI standard C programs
(X) Attempt to support aspects of traditional C preprocessors
( ) Inhibit all warning messages
Path to save file is "C:\Dev-C++\myfile\Sample.c"
My system is WIndows XP Pro w/Service Pack 3. There is no antivirus software
or spyware applications on this machine. I got the installer from the "SAMS
Teach yourself C in 21 days" book and it does not work as the book describes
nor do I know enough to start taking apart stdlib.h to find what is wrong.
Any assistance would be greatly appreciated. i tried looking in the forums but
was unable to find anything that came close to errors that I am experiencing.
Thank you for your time.
firestorm_v1
I apologize, Below is my compile log (from the compile log tab from the IDE):
Compiling files :
C:\DEV-C_~1\Bin\gcc c:\dev-c_~1\myfiles\sample.c -o c:\dev-
c_~1\myfiles\Sample.exe -ansi -traditional-cpp -s -IC:\DEV-C_~1\Include\ -IC
:\DEV-C_~1\Include\G__~1 -IC:\DEV-C_~1\Include\ -LC:\DEV-C_~1\Lib\ -BC:\DEV-
C_~1\Bin\
The first thing you should do is dump that very old version of Dev-C++. You
should use 4.9.9.2 if you use Dev-C++ at all. Even then it has not been
maintained since 2005, so you ma even want to consider using something else
altogether.
Get 4.9.9.2 from https://sourceforge.net/projects/dev-cpp/files/Binaries/Dev-
C%2B%2B%204.9.9.2/devcpp-4.9.9.2_setup.exe/download
Some more recent components of the underlying MinGW tool chain are also
available from https://sourceforge.net/projects/dev-
cpp/files/.
However, what I'd actually recommend is
http://www.microsoft.com/express/Downloads/#2008-Visual-
CPP
Hello cpns:
I wanted to thank you for your very helpful suggestions. With your first
suggestion of an upgrade, I was able to compile my test program and the Sample
program in the back of the book. It looks like I'm up and running, ready to
start my education in C.
I've started downloading the MS Express applications (all of them, lol) and
hopefully will get to play with them soon. My only concern is it may be free
now but will this ever become non-free? I'm not exactly a major dev house or
nothing, but don't want the MS lawyers hunting me down at all.
Thank you again.
firestorm_v1
Check the EULAs for the Express editions (I am not a lawyer). They are free
for commercial and non commercial use. 2010 Express is available in Beta, so
it will remain free at least to that version.
I am not a lawyer, but I highly doubt Microsoft will ever place any
restrictions on existing versions of Visual C++. I wouldn't put it past them
to add restrictions to newer editions, but 2008 will almost definitely (99%
chance) remain free.
And anyway, if Microsoft did want to go after you, you would probably just get
a cease-and-desist letter. They wouldn't take you straight to court.