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.


Messages - wademcgillis

Pages: [1] 2 3
1
General / Re: [UNRESOLVED] [GAVE UP] SFML 2.0 Freetype issues
« on: April 09, 2013, 04:47:39 am »
I wasn't getting started using it, I was just trying to update to a version newer than the RC so the keyboard & font rendering issues could potentially go away. Since I couldn't get a more recent version to compile, I gave up and made a workaround for the keyboard issue in the RC. Sure, this means whoever bought the game won't get fullscreen anymore, but I don't think anyone really used that.

There's still the font rendering issue though.  :-\

2
General / [UNRESOLVED] [GAVE UP] SFML 2.0 Freetype issues
« on: April 08, 2013, 07:37:08 pm »
SFML 2.0 RC keeps crashing when I use sf::Mouse::isButtonPressed. I thought updated to a newer version would fix this, but it gave me more issues with sndfile and freetype. I eventually gave up and resorted to using the windowing events. The end.




Hello. My game fails to start up now because freetype is unable to be found, this was using the latest code from github.

Quote
Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @executable_path/../Frameworks/freetype.framework/Versions/A/freetype
  Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/AstronautEditor-eawjbzqshnxniyhehqmuxzwhpsrr/Build/Products/Release/AstronautEditor.app/Contents/MacOS/../Frameworks/sfml-graphics.framework/Versions/2.0.0/sfml-graphics
  Reason: image not found

Yes, I am using the freetype framework that comes with SFML.
Quote
otool -L sfml-graphics
sfml-graphics:
   @executable_path/../Frameworks/sfml-graphics.framework/Versions/2.0.0/sfml-graphics (compatibility version 2.0.0, current version 2.0.0)
   @executable_path/../Frameworks/sfml-window.framework/Versions/2.0.0/sfml-window (compatibility version 2.0.0, current version 2.0.0)
   @executable_path/../Frameworks/sfml-system.framework/Versions/2.0.0/sfml-system (compatibility version 2.0.0, current version 2.0.0)
   @executable_path/../Frameworks/freetype.framework/Versions/A/freetype (compatibility version 17.0.0, current version 17.0.0)
   /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
   /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 833.25.0)
   /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1138.51.0)
   /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
   /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)
   /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)

I have tried using the frameworks built with the Makefile and built in Xcode, to no avail. Yes, the framework is in the copy frameworks build phase.[/s]

3
General / Linking Error (only with Network)
« on: June 27, 2012, 09:58:20 pm »
Hello. I'm using the SFML 2.0 RC static libraries, with everything set to /MD

This code compiles fine. No linking issues.
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#pragma comment(lib,"sfml-network-s.lib")
#pragma comment(lib,"sfml-graphics-s.lib")
#pragma comment(lib,"sfml-window-s.lib")
#pragma comment(lib,"sfml-system-s.lib")

int main()
{
        //sf::Http h("http://games.wademcgillis.com/astronot/update.php?action=md5&type=win",80);
        sf::Image bob;
        return 0;
}
 

This code causes the linker to freak out:
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#pragma comment(lib,"sfml-network-s.lib")
#pragma comment(lib,"sfml-graphics-s.lib")
#pragma comment(lib,"sfml-window-s.lib")
#pragma comment(lib,"sfml-system-s.lib")

int main()
{
        sf::Http h("http://games.wademcgillis.com/astronot/update.php?action=md5&type=win",80);
        sf::Image bob;
        return 0;
}
 

Quote
Compiling...
main.cpp
Linking...
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in libcpmt.lib(string.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_string,class std::allocator >::push_back(char)" (?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXD@Z) already defined in sfml-system-s.lib(String.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_ostream > & __thiscall std::basic_ostream >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ostream >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ios >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf >::sputn(char const *,int)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::_String_iterator,class std::allocator > __thiscall std::basic_string,class std::allocator >::end(void)" (?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in sfml-graphics-s.lib(ImageLoader.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::_String_iterator,class std::allocator > __thiscall std::basic_string,class std::allocator >::begin(void)" (?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in sfml-graphics-s.lib(ImageLoader.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "protected: void __thiscall std::basic_string,class std::allocator >::_Tidy(bool,unsigned int)" (?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_string,class std::allocator >::reserve(unsigned int)" (?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z) already defined in sfml-system-s.lib(String.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,char const *)" (??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z) already defined in sfml-graphics-s.lib(ImageLoader.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_string,class std::allocator > __thiscall std::basic_string,class std::allocator >::substr(unsigned int,unsigned int)const " (?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z) already defined in sfml-graphics-s.lib(ImageLoader.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::allocator::deallocate(char *,unsigned int)" (?deallocate@?$allocator@D@std@@QAEXPADI@Z) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_ostream > & __cdecl std::operator<<,class std::allocator >(class std::basic_ostream > &,class std::basic_string,class std::allocator > const &)" (??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z) already defined in sfml-graphics-s.lib(ImageLoader.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(void)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in sfml-system-s.lib(Err.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_ostream > & __thiscall std::basic_ostream >::operator<<(class std::basic_ostream > & (__cdecl*)(class std::basic_ostream > &))" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_ostream > & __cdecl std::endl(class std::basic_ostream > &)" (?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z) already defined in sfml-graphics-s.lib(Image.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: char * __thiscall std::allocator::allocate(unsigned int)" (?allocate@?$allocator@D@std@@QAEPADI@Z) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::assign(char const *,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z) already defined in main.obj
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::_String_const_iterator,class std::allocator > __thiscall std::basic_string,class std::allocator >::end(void)const " (?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ) already defined in sfml-system-s.lib(String.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::_String_const_iterator,class std::allocator > __thiscall std::basic_string,class std::allocator >::begin(void)const " (?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ) already defined in sfml-system-s.lib(String.obj)
msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)" (?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in sfml-system-s.lib(Err.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) already defined in LIBCMT.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __invalid_parameter_noinfo already defined in LIBCMT.lib(invarg.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) already defined in LIBCMT.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _tolower already defined in LIBCMT.lib(tolower.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _isdigit already defined in LIBCMT.lib(_ctype.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memmove_s already defined in LIBCMT.lib(memmove_s.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _abort already defined in LIBCMT.lib(abort.obj)
libcpmt.lib(locale0.obj) : error LNK2005: "void __cdecl _AtModuleExit(void (__cdecl*)(void))" (?_AtModuleExit@@YAXP6AXXZ@Z) already defined in msvcprt.lib(locale0_implib.obj)
libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(locale0.obj) : error LNK2005: __Fac_tidy already defined in msvcprt.lib(locale0_implib.obj)
libcpmt.lib(locale0.obj) : error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprt.lib(locale0_implib.obj)
libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(locale0.obj) : error LNK2005: "public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::operator=(char const *)" (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string,class std::allocator > const &)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(ios.obj) : error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(ios.obj) : error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in msvcprt.lib(MSVCP90.dll)
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in msvcprt.lib(MSVCP90.dll)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
E:\shit\Release\shit.exe : fatal error LNK1169: one or more multiply defined symbols found

The problem is that I can't compile my project while using sfml-network, and any use of /NODEFAULTLIB causes the linker to complain that things are missing.

How do I fix this?

Edit:
I should also add that leaving everything as /MD causes linking issues with the first code bit.

4
Graphics / Rendering in a separate thread in OS X
« on: May 24, 2012, 04:07:53 am »
When I try to render in a separate thread in OS X, it complains that I can't do that in a worker thread.

How do I resolve this?

"Cannot fetch event from a worker thread. (OS X restriction)"

I mainly want to do this so the app doesn't freeze when I click on the menu bar.

5
General / SFML2 doesn't link - VS 2008
« on: October 12, 2011, 11:13:09 pm »
Quote from: "Nexus"
__declspec(dllimport) indicates that the linker is searching for the dynamic libraries.

Did you define SFML_STATIC?


Yes.

I solved it by fiddling around with options in CMake.  :lol:

Thanks anyway though.

6
General / SFML2 doesn't link - VS 2008
« on: October 12, 2011, 08:21:14 pm »
:evil:

My project no longer links when I use SFML2 in Visual Studio 2008

Yes, I am linking to the SFML2 static libs.
Yes, the files do exist.

Code: [Select]

1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::Shape __cdecl sf::Shape::Rectangle(float,float,float,float,class sf::Color const &,float,class sf::Color const &)" (__imp_?Rectangle@Shape@sf@@SA?AV12@MMMMABVColor@2@M0@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::Shape __cdecl sf::Shape::Line(float,float,float,float,float,class sf::Color const &,float,class sf::Color const &)" (__imp_?Line@Shape@sf@@SA?AV12@MMMMMABVColor@2@M0@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetColor(class sf::Color const &)" (__imp_?SetColor@Drawable@sf@@QAEXABVColor@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetScale(float,float)" (__imp_?SetScale@Drawable@sf@@QAEXMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetPosition(float,float)" (__imp_?SetPosition@Drawable@sf@@QAEXMM@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual unsigned int __thiscall sf::RenderWindow::GetHeight(void)const " (__imp_?GetHeight@RenderWindow@sf@@UBEIXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual unsigned int __thiscall sf::RenderWindow::GetWidth(void)const " (__imp_?GetWidth@RenderWindow@sf@@UBEIXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(void)" (__imp_??0RenderWindow@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Show(bool)" (__imp_?Show@Window@sf@@QAEX_N@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::PollEvent(class sf::Event &)" (__imp_?PollEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::IsOpened(void)const " (__imp_?IsOpened@Window@sf@@QBE_NXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Create(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::ContextSettings const &)" (__imp_?Create@Window@sf@@QAEXVVideoMode@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUContextSettings@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Texture::LoadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class sf::Rect<int> const &)" (__imp_?LoadFromFile@Texture@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$Rect@H@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Texture::~Texture(void)" (__imp_??1Texture@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Texture::Texture(void)" (__imp_??0Texture@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::SetSubRect(class sf::Rect<int> const &)" (__imp_?SetSubRect@Sprite@sf@@QAEXABV?$Rect@H@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::SetTexture(class sf::Texture const &,bool)" (__imp_?SetTexture@Sprite@sf@@QAEXABVTexture@2@_N@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(void)" (__imp_??0Sprite@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::Color const sf::Color::Red" (__imp_?Red@Color@sf@@2V12@B)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &)" (__imp_?Draw@RenderTarget@sf@@QAEXABVDrawable@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (__imp_?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Shape::~Shape(void)" (__imp_??1Shape@sf@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ)

7
Window / Set RenderWindow title.
« on: May 11, 2010, 03:29:34 am »
I look at the documentation for this, but I couldn't find a way to change the title of a RenderWindow. Is this possible at all?

SetIcon  (unsigned int Width, unsigned int Height, const Uint8 *Pixels)
    Change the window's icon.



Come on? No "SetTitle" ?[/code]

8
Window / Mouse leaving the window causes button issue
« on: May 10, 2010, 08:17:22 pm »
How disappointing.

Maybe I should make programs that don't use the mouse.

9
Window / Mouse leaving the window causes button issue
« on: May 10, 2010, 06:31:14 pm »
But the window is still in focus.

10
Window / Mouse leaving the window causes button issue
« on: May 10, 2010, 03:44:32 pm »
I hold down the left mouse button and move the mouse outside an SFML window, then I release the left mouse button. When I move the mouse back into the window, Input.IsMouseButtonDown(sf::Mouse::Left) returns true!

Why?

11
General / [SOLVED] SFML 1.6 static library errors
« on: May 10, 2010, 04:00:13 am »
How did you install a new version of mingw?

12
Graphics / 512x512 texture slowing game down
« on: February 14, 2010, 11:51:50 pm »
Quote from: "Laurent"
Maybe you just need to update your graphics drivers.


I started doing that right before you made that post.

13
Graphics / 512x512 texture slowing game down
« on: February 14, 2010, 11:32:30 pm »
edit: how did I double post?

14
Graphics / 512x512 texture slowing game down
« on: February 14, 2010, 11:12:31 pm »
Quote from: "dunce"
Quote
Also, my code is very readable in my perspective. I'd probably think your code is very messy too.

I have not seen OniLink10's code, but have seen yours. Sorry but it's really a mess. Not only because of allocating memory without freeing it. Classes and c-stylish free functions, lumps of implementation code in *.h files that should be placed in *.cpp files, and so on... No offense, just my friendly opinion. :wink:


I have never been able to link multiple cpp files together. Well, I have... but never when code in one cpp file depends on code in another. If I try to do that, "multiple defintion. ur code is fubar'd"

edit1: This wasn't a discussion of my code. This is a discussion of why, when I display two 512x512 textures, the game runs like poo.

edit2: wow. All openGL based games are doing this. Sorry, it wasn't a problem with SFML...

15
Graphics / 512x512 texture slowing game down
« on: February 14, 2010, 01:57:54 am »
Quote from: "OniLink10"
I've done a comparison of Game Maker and SFML before. SFML was much faster at everything. It's most likely your code. Also, your code is VERY messy and unsafe. You call new a lot but I don't see you calling delete anywhere!


How do I call new "a lot"? Each new only gets called once, it's not like it's a memory leak since the game goes out of memory when it closes.


Also, my code is very readable in my perspective. I'd probably think your code is very messy too.

Pages: [1] 2 3