Menu

Assistance needed

2010-02-07
2012-09-26
  • firestorm_v1

    firestorm_v1 - 2010-02-07

    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 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

     
  • firestorm_v1

    firestorm_v1 - 2010-02-07

    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\

     
  • firestorm_v1

    firestorm_v1 - 2010-02-09

    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

     
  • cpns

    cpns - 2010-02-09

    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.

     
  • anonymous nobody

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.