Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 |
#include <SFML/System.hpp> #include <SFML/Window.hpp> int main() { App.Create(sf::VideoMode::GetMode(0), "SFML Window", sf::Style::Fullscreen); } |
C-/C++-Quelltext |
|
1 2 3 4 5 6 |
1>c:\projekte\sfml\sfml_test_final\sfml_test_final\main.cpp(9) : error C2065: 'App': nichtdeklarierter Bezeichner 1>c:\projekte\sfml\sfml_test_final\sfml_test_final\main.cpp(9) : error C2228: Links von ".Create" muss sich eine Klasse/Struktur/Union befinden. 1> Typ ist ''unknown-type'' 1>Das Buildprotokoll wurde unter "file://c:\Projekte\SFML\SFML_test_final\SFML_test_final\Debug\BuildLog.htm" gespeichert. 1>SFML_test_final - 2 Fehler, 0 Warnung(en) ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ========== |
C-/C++-Quelltext |
|
1 |
sf::RenderWindow App(/*...*/); |
C-/C++-Quelltext |
|
1 |
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); |
C-/C++-Quelltext |
|
1 2 3 4 |
1>Verknüpfen... 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall sf::Window::~Window(void)" (??1Window@sf@@UAE@XZ)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z)" |
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <SFML/Window.hpp> int main() { // Create the main window sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); // Start main loop bool Running = true; while (Running) { App.Display(); } return EXIT_SUCCESS; } |
C-/C++-Quelltext |
|
1 2 3 4 5 |
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall sf::Window::~Window(void)" (??1Window@sf@@UAE@XZ)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)" in Funktion "_main". 1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z)" in Funktion "_main". 1>C:\Projekte\SFML\SFML_test_final\Debug\SFML_test_final.exe : fatal error LNK1120: 4 nicht aufgelöste externe Verweise. |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »MrMonkey« (27.08.2010, 17:27)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »SaRu« (27.08.2010, 17:40)
Zitat
VC++-Verzeichnisse
Die Einstellung VC++-Verzeichnisse befindet sich jetzt an zwei Stellen.Verwenden Sie Projekteigenschaftenseiten, um projektspezifische Werte für VC++-Verzeichnisse festzulegen.Verwenden Sie den Eigenschaften-Manager und ein Eigenschaftenblatt, um globale konfigurationsspezifische Werte für VC++-Verzeichnisse festzulegen.
Zitat
3) VC++ Directories change
VC++ Directories are no longer supported in VS2010 through Tools->Options page. Instead, VS2010 introduces the user settings file (Microsoft.cpp.<Platform>.users.props) to control global settings including Global search path. These files are located at $(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 directory. Upon migration to VS2010, the custom settings of VC++ Directories from VS2005 or VS2008 are migrated to these user files. These global settings files are imported into all the converted and newly created projects.
Here are the steps to change the settings file through UI:
·Open up property manager by clicking on View.Property Manager.
·Expand the project node and then the Configuration|Platform nodes, you will see "Microsoft.cpp.<Platform>.users" file for each Configuration|Platform. These are the files for the global settings, similar to the old tools/Options/VC++ Directories.
·Multi-Select "Microsoft.cpp.<Platform>.users", right click and bring up the property page window
·In the property page window, click on "VC++ Directories" (for example) in the left pane, add new paths for the directories such as "Include Directories". separated by semicolons
·Make sure to save the settings before shutting down Visual Studio.
·Re-launch Visual Studio and the new settings will be in effect.
-Note: If you would like to only change the settings for one project, you can right click on the project and bring up the property page. Change the settings for “VC++ Directories”, these settings will be persisted to the project file.
Werbeanzeige