Page 1 of 1

I need some help!

Posted: August 19th, 2009, 11:01 am
by Andrecito777
I get this when I compile with codeblocks....


||=== sandbox, Debug Win32 ===|
..\engine\renderparticles.cpp|1079|warning C4305: 'argument' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1080|warning C4305: 'argument' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1083|warning C4305: 'argument' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1090|warning C4305: 'argument' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1104|warning C4305: 'initializing' : truncation from 'double' to 'const float'|
..\engine\renderparticles.cpp|1104|warning C4305: 'initializing' : truncation from 'double' to 'const float'|
..\engine\renderparticles.cpp|1104|warning C4305: 'initializing' : truncation from 'double' to 'const float'|
..\engine\renderparticles.cpp|1104|warning C4305: 'initializing' : truncation from 'double' to 'const float'|
..\engine\renderparticles.cpp|1104|warning C4305: 'initializing' : truncation from 'double' to 'const float'|
..\engine\renderparticles.cpp|1146|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1148|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1149|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1151|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1152|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1153|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1154|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\renderparticles.cpp|1155|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1187|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1187|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1187|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1187|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1250|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1250|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1250|warning C4305: 'initializing' : truncation from 'double' to 'float'|
..\engine\water.cpp|1250|warning C4305: 'initializing' : truncation from 'double' to 'float'|
c:\documents and settings\andrew turner\my documents\downloads\platinumartssandbox2.3\src\moviecube\movieclient.h|403|warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)|
c:\documents and settings\andrew turner\my documents\downloads\platinumartssandbox2.3\src\moviecube\movieclient.h|405|warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)|
c:\documents and settings\andrew turner\my documents\downloads\platinumartssandbox2.3\src\moviecube\movieclient.h|41|warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)|
c:\documents and settings\andrew turner\my documents\downloads\platinumartssandbox2.3\src\moviecube\moviecamera.h|82|warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)|
LINK||fatal error LNK1561: entry point must be defined|
||=== Build finished: 1 errors, 29 warnings ===|




And I can not get it to work!!

Re: I need some help!

Posted: August 20th, 2009, 6:18 pm
by Mike
First mistake is you are compiling in debug, not release. Second, you might want to remove moviecube from the project file. Take care.
-mike

Re: I need some help!

Posted: August 20th, 2009, 6:33 pm
by Hirato
debug against release shouldn't make any difference
he does appear to be using msvc, so the project file is either highly outdated, or more likely as the output suggests, unable to compile due to msvc bugs
and since I don't use msvc, and never will; we support gcc (mingw for windows users)


I don't even know what a LNK1561 means

EDIT
it seems that LNK1561 means it can't find int main(), which means something is very screwed up, either with the msvc project or msvc itself. I'll see if I can poke mike to update it for the next release

in the meantime, can you install codeblocks, and mingw, and compile with the codeblocks project?
http://www.codeblocks.org <-- you'll want the one which is jsut codeblocks,
http://www.tdragon.net/recentgcc/ <-- you DON'T want the one with DWARF-2 bindings

Re: I need some help!

Posted: August 21st, 2009, 9:15 am
by Andrecito777
I am downloading Sandbox again (it was taking up too much space (I am a programmer you know :D )) and also downloading TDM's GCC/MinGW32 Build. I will edit this in a bit! Just to make sure corect me if I am wrong, I download Codeblocks, And also the other thing (cant remember the name.... its in the last post last sentence..) then compile with codeblocks! :shock:

Re: I need some help!

Posted: August 21st, 2009, 9:39 am
by Mike
Are you following these instructions?
http://sandboxgamemaker.com/wiki/index. ... ource_code

If you are using 2.3, then the sandbox.cbp file is in the mingw, not vcpp Take care.
-mike

Re: I need some help!

Posted: August 21st, 2009, 10:59 am
by Andrecito777
YAYAYAYAY!!! I got it to work!!!! Thanks mike for your suggestion! Also thank you Hirato!