Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Grimshaw

Pages: 1 2 [3]
General / "Absorving" SFML into one DLL - MSVC
« on: January 30, 2011, 02:29:11 am »
I've got a problem and i am not sure where it is coming from...

I am building an engine, that engine is one DLL file, so when i build my project, i use it from the applications linking against engine.lib and then putting engine.dll in the same directory.

Now the problem: when i build, i link the DLL against sfml2 static libraries, and i get unresolved externals.
Code: [Select]

1>PerceptionDisplay.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall sf::Window::OnEvent(class sf::Event const &)" (?OnEvent@Window@sf@@EAEXABVEvent@2@@Z)
1>PerceptionDisplay.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &)" (?Draw@RenderTarget@sf@@UAEXABVDrawable@2@@Z)
1>VisionPrimitives.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall sf::Shape::GetNbPoints(void)const " (?GetNbPoints@Shape@sf@@QBEIXZ)

I am not sure what is causing this, in theory i can simply make my dll swallow all the static .lib it depends on, right? So the end user only uses engine.lib and engine.dll, without the need to know anything about sfml..And still have the sfml api exposed if he wants to use it.

I think i may be missing some knowledge on how to work with DLL's, if anyone could brief me shortly i'd appreciate.

Other issue is when i export a class which has a vector or string member, i get a compiler warning, and when i compile sfml, which does the same thing here and there, no warnings... What am i doing wrong? :O
Code: [Select]
needs to have dll-interface to be used by clients of class 'pE::PackageHeader'


General discussions / Lua and C++
« on: January 29, 2011, 03:02:38 am »
Hello everyone, i should be a little off-topic with this, but any help would be apreciated!

I need to implement Lua scripting support, and i would like to know what is the best library which can help me expose C++ classes/functions easily.

Because i 've heard the regular Lua package is not directly suited for C++.


Window / Smaller Resolutions
« on: January 24, 2011, 07:01:05 pm »
I need to know the smallest resolution today's computer's are able to reach.
For instance, the first netbooks that came out, like Asus EEE PC, i want to know if it supports at least 1024x768, so i can have non configurable resolution in GUI screens, for optimal display.

Also, if someone knows, would help to know if i should concern keeping smaller images for older gpu.


General / SFML2 Topic Request
« on: January 04, 2011, 11:09:02 pm »

I'm posting to ask you, Laurent,if you can make something like a sticky topic, where you mantain a list with everything you add to SFML2!

I currently use 1.6 for its stability and release state. Im really interested in changing to SFML2 as soon as possible, canĀ“t wait to use all its features with my engine!

I didn't change yet because SFML2 may be susceptible to design changes and major additions, what could lead into a few rewriting of the engine later.

Would be nice to know about everything that is being added in SFML2, relative to SFML 1.6 along with any bugs it currently has : )


SFML projects / Puzzle Game Prototype
« on: December 12, 2010, 04:41:19 am »
Hello community, this is my first post! yay!

Thanks Laurent for the great library, it looks great from every way i look at it! Lifesaver! : )

I am writing a "puzzle" game in my free times and it is build on top of SFML, so i guess it deserves to be posted here! :shy:

The game is about moving blocks, horizontal blocks only move horizontally and vertical blocks only move vertically! Use the mouse to play, instructions in-game : )

You can download the game from here:

Enjoy and follow me in my blog (signature) if you find time : )

Pages: 1 2 [3]