-
Proficient Member
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
-
-
Account Upgraded | Title Enabled!
you did not do you directorys right or your missing files read the guide all the way
-
Proficient Member
what directorys? I just opened the main project made by whoever created the source. I didn't know there was a tutorial for compiling?
-
Account Upgraded | Title Enabled!
... people dont read.. why dont you look for my guide http://forum.ragezone.com/rose-onlin...de-168210.html might help
-
Proficient Member
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.
-
Valued Member
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.
-
Account Upgraded | Title Enabled!
did u jst dwonload the world server cos u hav to edit mos of it to get it to work
-
Proficient Member
you don't have to edit anything to make it work? I have edited alot of my server though...
-
Account Upgraded | Title Enabled!
i wish they would just sticky the compile guide...