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 - rush905

Pages: 1 2 [3]
31
General / Setting up OpenGL with Visual C++?
« on: August 21, 2012, 01:45:28 am »
Hi, I'm trying to set up OpenGL with Visual C++ on Windows 7. I'm trying to get this source from the tutorial to compile:

http://pastebin.com/dFrUj4zk

But I get this error:
Error   1   error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function _main   C:\Users\Nick\Desktop\Rendering\Rendering\Rendering.obj



I would imagine that I need to add some sort of OpenGL.lib file, but when I try and add "sfml/opengl-d.lib" to the "additional dependencies" category under Linker settings, I get an error that it doesn't exist.


I couldn't find anything about this under the tutorial, or anywhere online. So if anyone could please have the patience to help me out with this simple problem I would be extremely grateful.

32
Window / Re: Window Not Displaying?
« on: August 19, 2012, 06:19:04 am »
Okay, I solved the problem. Turns out I had to uninstall Visual C++ because I place the .lib and include files in the Visual C++ directory. I also had to include the sfml-main-d.lib file too. So that fixed the problem. Thanks for the help.

33
Window / Re: Window Not Displaying?
« on: August 18, 2012, 07:42:25 pm »
Alright, let me start over. I'm in Visual C++, I create a new project, an empty project. I add a blank C++ file. Ok, now that it's made, what do I have to edit in my project's properties window?

And when you say "link against sfml-main.lib" are asking me if I have "sfml-main.lib" in my additional dependencies? If so, I'm in debug and have linked both "sfml-main-d.lib" and "sfml-graphics-d.lib"

Okay, I compiled again with the same source as above, and now I'm getting 8 errors:

Source: http://pastebin.com/Pw7vr9hm


Error   1   error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::display(void)" (?display@Window@sf@@QAEXXZ) referenced in function _main   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   3   error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::close(void)" (?close@Window@sf@@QAEXXZ) referenced in function _main   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   4   error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function _main   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   5   error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::isOpen(void)const " (?isOpen@Window@sf@@QBE_NXZ) referenced in function _main   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   7   error LNK2019: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function _main   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   6   error LNK2019: unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function _main   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   2   error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)   C:\Users\Nick\Desktop\Window1\Window1\Window.obj
Error   8   error LNK1120: 7 unresolved externals   C:\Users\Nick\Desktop\Window1\Debug\Window1.exe

34
Window / Re: Window Not Displaying?
« on: August 18, 2012, 04:53:40 am »
Well I switched, and now I have more problems. This time it's with compiling. I get these two errors when I try to create a Window program:

Error   1   error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup   C:\Users\Nick\Desktop\kjhkjh\kjhkjh\MSVCRTD.lib(crtexew.obj)


Error   2   error LNK1120: 1 unresolved externals   C:\Users\Nick\Desktop\kjhkjh\Debug\Window.exe   1

http://pastebin.com/qb7LFZJL

35
Window / Re: Window Not Displaying?
« on: August 18, 2012, 01:14:36 am »
I put "App.Display();" inside a loop, and still, nothing happens.

I guess it is the ATI Graphics card. I'll switch to 2.0.

36
Window / Window Not Displaying?
« on: August 18, 2012, 12:35:12 am »
Hi everyone. I'm going through the tutorials on the SFML site, and I came across the Windows tutorial. http://www.sfml-dev.org/tutorials/1.6/graphics-window.php Anyways, I'm using Visual C++, have all the Linker options correct, and the .dlls in place, it even compiles. But in the end when I try to run the program, nothing happens. The process is running in the background, yet nothing's there.

Any help would be great. Thanks.

Source straight from the site:

>http://pastebin.com/kaa1t9UV

And if it helps, my Source:
> http://pastebin.com/aiy2ra6w

Pages: 1 2 [3]