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

Pages: [1]
1
General / Linking errors in newly built sfml project for visual studio 2013
« on: December 06, 2013, 07:00:39 am »
Hi so I just built SFML in cmake for visual studio 2013x64. Now When I try to build and everything I get this error.

Code: [Select]
1>------ Build started: Project: sfml_test, Configuration: Debug x64 ------
1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  cl /c /IC:\Users\Max\Sandbox\sfml_two\include /Zi /W3 /WX- /sdl /Od /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc120.pdb" /Gd /TP /errorReport:prompt main.cpp
1> 
1>  Skipping... (no relevant changes detected)
1>  main.cpp
1>  Microsoft (R) Incremental Linker Version 12.00.21005.1
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  "/OUT:c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.exe" /INCREMENTAL "/LIBPATH:C:\Users\Max\Sandbox\sfml-build-two\lib\Debug" "sfml-graphics-d.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.lib" /MACHINE:X64 x64\Debug\main.obj
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QEAA@PEBDAEBVlocale@std@@@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::String::~String(void)" (__imp_??1String@sf@@QEAA@XZ) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QEAA@III@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl sf::Window::close(void)" (__imp_?close@Window@sf@@QEAAXXZ) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QEBA_NXZ) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QEAA_NAEAVEvent@2@@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl sf::Window::display(void)" (__imp_?display@Window@sf@@QEAAXXZ) referenced in function main
1>c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.exe : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have never seen something like this so I'm a bit confused as to what it is. Any help would be great.

2
Graphics / Trying to load tilemap in .tmx format
« on: February 22, 2013, 09:00:11 pm »
Hi all,

So I am trying to load my tilemap from tiled using the loader created here for SFML 2.0 found in this topic http://en.sfml-dev.org/forums/index.php?topic=3023.msg62106#msg62106.

My problem is that it appears to work but when I run it I get this in my window:


. It gives me that blue at the top which makes me think it is loading but I'm not sure at all.
 
here is my main.cpp
#include<SFML/Graphics.hpp>
#include "ResourcePath.hpp"
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<sstream>
#include "TmxLoader.h"

#define ScreenWidth 800
#define ScreenHeight 600

#define BLOCKSIZE 40
int main()
{
    sf::RenderWindow Window(sf::VideoMode(ScreenWidth, ScreenHeight, 32), "SFML Made Easy");
    bool play = true;
    sf::Event event;
   
    //LoadMap("/Users/maxmarze/Dropbox/sfml/Udemy/Udemy/Map1.txt");
    sf::View myView;
    myView.setSize(sf::Vector2f(1000, 1000));
    myView.setCenter(400, 300);
   
    tmx::TileMap myMap;
   
    myMap.LoadFromFile("level One_one.tmx", "/Users/maxmarze/Dropbox/sfml/Udemy/Udemy/tile_maps/");
    myMap.SetDrawingBounds(myView.getViewport());
   
    while(play == true)
    {
        while(Window.pollEvent(event))
        {
            if(event.type == sf::Event::Closed)
            {
                play = false;
            }
        }
       
        Window.clear();
      //  DrawMap(Window);
        myMap.Draw(Window);
        Window.display();
       
       
    }
   
    Window.close();
    return 0;
}

And the loader code is just in the above link. My tile map is 800*800 pixels so I don't understand why it would not be loading on the full screen. Anyone have any idea?

Pages: [1]
anything