1

Topic: [QUESTION] Visual studios 2010 compiling ??

Hello, i am new to teeworlds community and i was wandering if it is possible to compile using vs10?
There is only a bam executable for VS8,9 it seems /:

2

Re: [QUESTION] Visual studios 2010 compiling ??

well i never sucessed at using vs10 to compile bam, but once you compiled bam you can use vs10 to compile source.
So just download the trail version, compile bam, and delete vs8 again tongue

How to compile on windows
~~~ You may NOT edit, or use my work without asking permission at the topic of my work ~~~
if(!game.players[massdestruction]->get_character()) { game.send_chat_target(massdestruction, "You ever gonna learn to aim?") }

3

Re: [QUESTION] Visual studios 2010 compiling ??

Well i just changed my "make_win32_msvc.bat" to:

@echo off

:: Check for Visual Studio
if exist "%VS90COMNTOOLS%" (
    set VSPATH="%VS100COMNTOOLS%"
    goto compile
)
if exist "%VS80COMNTOOLS%" (
    set VSPATH="%VS80COMNTOOLS%"
    goto compile
)
if exist "%VS100COMNTOOLS%" (
    set VSPATH="%VS100COMNTOOLS%"
    goto compile
)

echo You need Microsoft Visual Studio 8 or 9 installed
pause
exit

:compile

call %VSPATH%vsvars32.bat

@cl /D_CRT_SECURE_NO_DEPRECATE /O2 /nologo src/tools/txt2c.c /Fesrc/tools/txt2c.exe
@src\tools\txt2c src\base.lua src\driver_gcc.lua src\driver_cl.lua > src\internal_base.h
@cl /D_CRT_SECURE_NO_DEPRECATE /W3 /TC /O2 /nologo /I src/lua src/lua/*.c src/*.c /Febam.exe
@del *.obj

All i did was adding the

if exist "%VS100COMNTOOLS%" (
    set VSPATH="%VS100COMNTOOLS%"
    goto compile
)


to the batch file, and it worked, tho it did give me like 3 warnings.. ?
At the end it did say Code was generated..