Get the latest Education e-news
 

Go Back   Game Career Guide Forums > Game Career Guide > Getting Started
Forum Home Register Members List Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 06-19-2008, 01:17 PM   #11
yaustar
Administrator
 
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
1/11 sssss2270
Location: UK
Default

Get rid of every file in your project except for SFML3.cpp.
If it still doesn't work, do a print of your property page (like my second screenshot) showing the precompiled header settings.
yaustar is offline   Reply With Quote
Old 06-19-2008, 01:52 PM   #12
paci4416
Junior Member

Activity Longevity
0/20 17/20
Today Posts
0/11 ssssssss7
Default

oh my bad, didnt change to "Not using precompiled headers"

now i changed and these the errors i get:


1>SFML3.obj : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function _main

1>SFML3.obj : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function _main

1>SFML3.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function _main
paci4416 is offline   Reply With Quote
Old 06-19-2008, 04:34 PM   #13
yaustar
Administrator
 
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
1/11 sssss2270
Location: UK
Default

You haven't linked the libraries for SFML.

Did you do the last step in the tutorial linked earlier: http://www.sfml-dev.org/tutorials/start-vc.php

Quote:
Open your project's options, then go to the Linker / Input item. In the Additional dependencies row, add the SFML libraries you are using. Here we only use sfml-system.lib. For the Debug configuration, you can link with the debug versions of the libraries, which have the "-d" suffix (sfml-system-d.lib in this case).
yaustar is offline   Reply With Quote
Old 06-19-2008, 08:59 PM   #14
paci4416
Junior Member

Activity Longevity
0/20 17/20
Today Posts
0/11 ssssssss7
Default

compiled , but when i run:

" The system cannot execute the specified program. "

arr..
paci4416 is offline   Reply With Quote
Old 06-19-2008, 11:40 PM   #15
Claxon
Senior Member

Activity Longevity
0/20 18/20
Today Posts
0/11 ssssss345
Location: London
Default

Quote:
Originally Posted by DTR View Post
Might change to Java as well then.

C# is nothing but a Ms attempt at creating a Java-like platform just for Windows environment.

Don't let the "C" fool you in the name...
No J++ is Microsofts attempt at a java-like platform. C# is their attempt at appeasing C/C++ programmers who don't like various Java features (What do you mean no Structs?!?!?). I do quite like C# myself, but I agree Java would probably be more useful if you're going to 2d games, since the Mobile industry are always looking for more j2me programmers.
Claxon is offline   Reply With Quote
Old 06-20-2008, 01:52 AM   #16
yaustar
Administrator
 
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
1/11 sssss2270
Location: UK
Default

Quote:
Originally Posted by paci4416 View Post
compiled , but when i run:

" The system cannot execute the specified program. "

arr..
Did you read ALL of the tutorial?

Quote:
Your program should now compile, link and run fine. If you linked against the dynamic versions of the SFML libraries, donc forget to copy the corresponding DLLs (sfml-system.dll in this case) to your executable's directory, or to a directory contained in the PATH environment variable.
If you are running into more problems, then please take it to their forums: http://www.sfml-dev.org/forum/
yaustar is offline   Reply With Quote
Old 06-21-2008, 09:39 AM   #17
DTR
Member

Activity Longevity
0/20 17/20
Today Posts
0/11 sssssss94
Location: Helsinki, Finland
Default

Quote:
Originally Posted by Claxon View Post
No J++ is Microsofts attempt at a java-like platform. C# is their attempt at appeasing C/C++ programmers who don't like various Java features (What do you mean no Structs?!?!?). I do quite like C# myself, but I agree Java would probably be more useful if you're going to 2d games, since the Mobile industry are always looking for more j2me programmers.

The problem with "apeasing" C/C++ crowd comes with the very nature of C#.

Like java, it is interpreted (though JIT and compilation are options), high level garbage collected language.

Somehow I fail to see innovation C# is trying to provide. People sticking with C-family like to handle things by themselves. GC is not actually their cup of tea, neither are the other features that accompany these "modern" and "safe" languages.

Microsoft Windows compatibility is surely nice, but still...

Last edited by DTR : 06-21-2008 at 09:43 AM.
DTR is offline   Reply With Quote
Old 06-21-2008, 11:45 AM   #18
paci4416
Junior Member

Activity Longevity
0/20 17/20
Today Posts
0/11 ssssssss7
Default

SFML is working .

i just made a whole new project and did all your comments and it's worked great.

thank you very much yaustar for your help.
paci4416 is offline   Reply With Quote
Old 06-22-2008, 03:33 PM   #19
Gshonk
Moderator

Activity Longevity
0/20 20/20
Today Posts
0/11 ssssss831
Location: Philadelphia, PA
Default

Quote:
Originally Posted by paci4416 View Post
i tried XNA , but i dont know, everything is already done and the programmer dont do alot just using different funcs.

i checked SFML , seems nice but i cant get it compile on my Visual C++ 9.0 Express.
compile error about "forgot to include "stdafx.h" ? " and when i do i get more errors. :/

any other advices to 2d programming?


btw, my goal is something like casual games in BigFish and Reflexive.
Check out my final project http://smashbricks.blogspot.com/ it's a casual game.

PS It is 3d though.
__________________
Grant Shonkwiler()
"I would love to fix the world if someone would just give me the source code"
Website Industry blog LinkedIn
Gshonk is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 03:27 AM.






UBM Tech