Can't Compile anything

Results 1 to 9 of 9
  1. #1
    Proficient Member Vampyros is offline
    MemberRank
    Sep 2006 Join Date
    164Posts

    Can't Compile anything

    Hello I would not say im particulary good with c++ but i have been programming for over a year now with various other languages so i have good programming knowledge. I would like to apply this knowledge to my server but i am unable to get this to compile. I was going to use the c++ compiler i've always used - Bloodshed Dev C++ server but i noticed the project files included were microsofts visual c++ files. I downloaded the latest visual c++ and tried to compile the servers just to see if it works and its convinced that winsock2.h and windows.h doesn't exist. I have used the help system and it tells you to make sure some libraries are on the environment or somthing.

    I was just wondering what you all did to make this compile.

    The errors i get when compiling the login server are:
    ------ Build started: Project: 1. Login Server, Configuration: Debug Win32 ------
    Compiling...
    loginclient.cpp
    c:\documents and settings\loz\my documents\rose source\common\sockets.h(20) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    loginserver.cpp
    c:\documents and settings\loz\my documents\rose source\common\sockets.h(20) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    main.cpp
    c:\documents and settings\loz\my documents\rose source\login server\main.cpp(19) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    config.cpp
    log.cpp
    c:\documents and settings\loz\my documents\rose source\common\log.cpp(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    rosecrypt.cpp
    c:\documents and settings\loz\my documents\rose source\common\rosecrypt.hpp(21) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    socket_base.cpp
    c:\documents and settings\loz\my documents\rose source\common\sockets.h(20) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    socket_client.cpp
    c:\documents and settings\loz\my documents\rose source\common\sockets.h(20) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    socket_server.cpp
    c:\documents and settings\loz\my documents\rose source\common\sockets.h(20) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    Generating Code...
    Build log was saved at "file://c:\Documents and Settings\Loz\My Documents\Rose Source\Login Server\Debug\BuildLog.htm"
    1. Login Server - 8 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Thank you


  2. #2
    Account Upgraded | Title Enabled! kac123ige is offline
    MemberRank
    Aug 2005 Join Date
    PoorOnTheStreetLocation
    493Posts
    you did not do you directorys right or your missing files read the guide all the way

  3. #3
    Proficient Member Vampyros is offline
    MemberRank
    Sep 2006 Join Date
    164Posts
    what directorys? I just opened the main project made by whoever created the source. I didn't know there was a tutorial for compiling?

  4. #4
    Account Upgraded | Title Enabled! forsaken08 is offline
    MemberRank
    Jul 2005 Join Date
    In my roomLocation
    347Posts
    ... people dont read.. why dont you look for my guide http://forum.ragezone.com/rose-onlin...de-168210.html might help

  5. #5
    Proficient Member Vampyros is offline
    MemberRank
    Sep 2006 Join Date
    164Posts
    You can't look for somthing you didn't know existed :) anyways ur guide worked perfectly thanks. I was just wondering now how you turn of the debugger (as im guessing this is what is causing the huge file sizes) and if this is what is causing the server i compiled to run really slow when the one already compiled runs alright.

    Edit: Found out how, anyone having problems with laggy projects and huge files then just turn off debugging.. you don't need it for the server to work lol.
    Last edited by Vampyros; 11-09-06 at 09:03 PM.

  6. #6
    Valued Member d00bie is offline
    MemberRank
    Sep 2006 Join Date
    108Posts
    yes lol, debugging will make your programs run very slow compared to a release version.

    That is a very nice guide forsaken08 :) keep it up.

  7. #7
    Account Upgraded | Title Enabled! Regain is offline
    MemberRank
    Aug 2006 Join Date
    Behind you ;]Location
    426Posts
    did u jst dwonload the world server cos u hav to edit mos of it to get it to work

  8. #8
    Proficient Member Vampyros is offline
    MemberRank
    Sep 2006 Join Date
    164Posts
    you don't have to edit anything to make it work? I have edited alot of my server though...

  9. #9
    Account Upgraded | Title Enabled! forsaken08 is offline
    MemberRank
    Jul 2005 Join Date
    In my roomLocation
    347Posts
    i wish they would just sticky the compile guide...



Advertisement