problems with codeing, express and computers in general

  • singularity
    10th Aug 2010 Member 0 Permalink
    Right so basicly a few days ago I swapped from code blocks to express C++. But I have some problems with Express C++:

    You don't know what line you are on. On codeblocks it has the line next to it.
    can't find compile button.

    Now for my other problems I have made a video of it.

    http://www.youtube.com/watch?v=pYN9004_1uI

    Thanks.
  • devast8a
    10th Aug 2010 Former Staff 0 Permalink
    Line option is changed by going in to options under Text Editor (Which I think is under one of the major categories) Then go to C++ files then there should be a tick box.
  • Amal_isa
    10th Aug 2010 Member 0 Permalink
    In line 26 change SDL/SDL.h on SDL.h
  • singularity
    10th Aug 2010 Member 0 Permalink
    Lol watch the video i already.
  • anonymouse91
    10th Aug 2010 Member 0 Permalink
    It looks as if you are missing SDL.h. As Amal_isa said, check your powder.c file and make sure "SDL/SDL.h" is changed to "SDL.h".

    If you've done that, make sure you've downloaded the "needed libraries" zip and placed the two folders (SDL and BZlib) into the same folder where powder.c is.

    Also make sure you have added the dependencies (step 9 and 10 on the editor setup section on the wiki) and the additional include folders (step 11).

    To clarify, the dependencies and includes sections should look similar to the following (your path to your powder toy source files will be different and as I am using Visual C++ 2008, the boxes may look a little different):

    PT Config 1
    PT Config 2
  • Felix
    10th Aug 2010 Member 0 Permalink
    Where SDL.h is depends on where you installed the SDL header files. It is suggested to install them to a subfolder called SDL because that is how it is on other platforms.
  • singularity
    10th Aug 2010 Member 0 Permalink
    FFS now im getting this error


    1>------ Build started: Project: Singularity's powder., Configuration: Debug Win32 ------
    1>LINK : fatal error LNK1104: cannot open file 'C:\Users\gabriel\Desktop\Source\SDL\SDL.obj'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    Lol
  • singularity
    10th Aug 2010 Member 0 Permalink
    Also after i build

    It says The system cannot find file specified.
  • singularity
    10th Aug 2010 Member 0 Permalink
    Now it says this


    1>------ Build started: Project: Singularity's powder., Configuration: Debug Win32 ------
    1>bzip2recover.obj : error LNK2005: _main already defined in bzip2.obj
    1>dlltest.obj : error LNK2005: _main already defined in bzip2.obj
    1>mk251.obj : error LNK2005: _main already defined in bzip2.obj
    1>spewG.obj : error LNK2005: _main already defined in bzip2.obj
    1>unzcrash.obj : error LNK2005: _main already defined in bzip2.obj
    1>SDLmain.lib(SDL_win32_main.obj) : error LNK2005: _main already defined in bzip2.obj
    1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>spewG.obj : error LNK2019: unresolved external symbol _random referenced in function _main
    1>spewG.obj : error LNK2019: unresolved external symbol _setbuffer referenced in function _main
    1>spewG.obj : error LNK2019: unresolved external symbol _srandom referenced in function _main
    1>C:\Users\gabriel\Desktop\Source\Debug\Singularity's powder..exe : fatal error LNK1120: 3 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • singularity
    10th Aug 2010 Member 0 Permalink
    Please help