Compiler didn't found any headerfiles

The Path in Systemvariables is allready there but the Compiler still dont’t find anything.

1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(1) : warning C4627: "#include "pandaFramework.h"": Wird bei der Suche nach Verwendung des vorkompilierten Headers übersprungen.
1>        "stdafx.h" Direktive hinzufügen oder vorkompilierten Header erneut erstellen
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(2) : warning C4627: "#include "pandaSystem.h"": Wird bei der Suche nach Verwendung des vorkompilierten Headers übersprungen.
1>        "stdafx.h" Direktive hinzufügen oder vorkompilierten Header erneut erstellen
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(5) : error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'framework'
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(5) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(5) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(9) : error C2228: Links von ".open_framework" muss sich eine Klasse/Struktur/Union befinden.
1>        Typ ist 'int'
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(11) : error C2228: Links von ".set_window_title" muss sich eine Klasse/Struktur/Union befinden.
1>        Typ ist 'int'
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(13) : error C2065: 'WindowFramework': nichtdeklarierter Bezeichner
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(13) : error C2065: 'window': nichtdeklarierter Bezeichner
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(13) : error C2228: Links von ".open_window" muss sich eine Klasse/Struktur/Union befinden.
1>        Typ ist 'int'
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(18) : error C2228: Links von ".main_loop" muss sich eine Klasse/Struktur/Union befinden.
1>        Typ ist 'int'
1>c:\users\xsadras\desktop\arsc\arsc\arsc.cpp(20) : error C2228: Links von ".close_framework" muss sich eine Klasse/Struktur/Union befinden.
1>        Typ ist 'int'

So what did go wrong?

You need to add C:\Panda3D-1.6.2\include to the include paths in your project configuration.

C:\Schnickschnack\Panda3D-1.6.2\include

does not work for me,
compiler still can’t find any header files

Then you didn’t add it to the project configuration’s include path.

1>------ Erstellen gestartet: Projekt: arsc, Konfiguration: Debug Win32 ------
1>Verknüpfen...
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::close_framework(void)" (__imp_?close_framework@PandaFramework@@QAEXXZ)" in Funktion "_main".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::main_loop(void)" (__imp_?main_loop@PandaFramework@@QAEXXZ)" in Funktion "_main".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: class WindowFramework * __thiscall PandaFramework::open_window(void)" (__imp_?open_window@PandaFramework@@QAEPAVWindowFramework@@XZ)" in Funktion "_main".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::set_window_title(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?set_window_title@PandaFramework@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)" in Funktion "_main".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::open_framework(int &,char * * &)" (__imp_?open_framework@PandaFramework@@QAEXAAHAAPAPAD@Z)" in Funktion "_main".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class BitMask<unsigned int,32> __cdecl BitMask<unsigned int,32>::lower_on(int)" (__imp_?lower_on@?$BitMask@I$0CA@@@SA?AV1@H@Z)" in Funktion ""void __cdecl `dynamic initializer for 'default_collision_node_collide_mask''(void)" (??__Edefault_collision_node_collide_mask@@YAXXZ)".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class BitMask<unsigned int,32> __cdecl BitMask<unsigned int,32>::bit(int)" (__imp_?bit@?$BitMask@I$0CA@@@SA?AV1@H@Z)" in Funktion ""void __cdecl `dynamic initializer for 'default_geom_node_collide_mask''(void)" (??__Edefault_geom_node_collide_mask@@YAXXZ)".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall PandaFramework::PandaFramework(void)" (__imp_??0PandaFramework@@QAE@XZ)" in Funktion ""void __cdecl `dynamic initializer for 'framework''(void)" (??__Eframework@@YAXXZ)".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall TypeHandle::TypeHandle(void)" (__imp_??0TypeHandle@@QAE@XZ)" in Funktion ""void __cdecl `dynamic initializer for 'private: static class TypeHandle CopyOnWriteObj1<class ov_multiset<class PandaNode::DownConnection,struct std::less<class PandaNode::DownConnection> >,class TypeHandle>::_type_handle''(void)" (??__E?_type_handle@?$CopyOnWriteObj1@V?$ov_multiset@VDownConnection@PandaNode@@U?$less@VDownConnection@PandaNode@@@std@@@@VTypeHandle@@@@0VTypeHandle@@A@@YAXXZ)".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall BitMask<unsigned int,32>::~BitMask<unsigned int,32>(void)" (__imp_??1?$BitMask@I$0CA@@@QAE@XZ)" in Funktion ""void __cdecl `dynamic atexit destructor for 'default_collision_node_collide_mask''(void)" (??__Fdefault_collision_node_collide_mask@@YAXXZ)".
1>arsc.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall PandaFramework::~PandaFramework(void)" (__imp_??1PandaFramework@@UAE@XZ)" in Funktion ""void __cdecl `dynamic atexit destructor for 'framework''(void)" (??__Fframework@@YAXXZ)".
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_WinMain@16" in Funktion "___tmainCRTStartup".
1>C:\Users\Xsadras\Desktop\arsc\Debug\arsc.exe : fatal error LNK1120: 12 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://c:\Users\Xsadras\Desktop\arsc\arsc\Debug\BuildLog.htm" gespeichert.
1>arsc - 13 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

ok… now I added all the libs, now it seems, that he need some dll’s
where do I add them?

You forgot to link to the Panda libraries.

Did you try browsing/searching the forums? There’s lots of information about this there.

No I just searched with google, sorry.

so what means “link to the Panda libraries” ?

atm I have

C:\Schnickschnack\Panda3D-1.6.2\bin

under binary files

C:\Schnickschnack\Panda3D-1.6.2\include
         C:\Schnickschnack\Panda3D-1.6.2\python\include

under include data

and

C:\Schnickschnack\Panda3D-1.6.2\lib
         C:\Schnickschnack\Panda3D-1.6.2\python\libs

under libary

so where are this links and what have I to type in there?

Sry I just coded with standard libaries

You also need to tell MSVC which libraries to link in from the library path.

ok, you mean in the C++ code?..Or in VC++ itself?

In VC++.

where? I can’t find anything

Here:
people.cs.vt.edu/~yongcao/teachi … step4b.jpg

From another thread:
discourse.panda3d.org/viewtopic.php?t=5252
and those libraries are added to the linker’s dependencies:
python25.lib libp3framework.lib libp3dtool.lib libp3dtoolconfig.lib libpanda.lib libpandaexpress.lib

Ok, thanks, I’ve added them, but still

1>------ Erstellen gestartet: Projekt: arsc, Konfiguration: Release Win32 ------
1>Verknüpfen...
1>MSVCRT.lib(crtexew.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_WinMain@16".
1>C:\Users\Xsadras\Desktop\arsc\Release\arsc.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://c:\Users\Xsadras\Desktop\arsc\arsc\Release\BuildLog.htm" gespeichert.
1>arsc - 2 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

I tried to add MSVCRT.lib but doesn’t helped

Hum, it’s expecting a “WinMain” function instead of “main”, which is not correct. There must be an option somewhere to let MSVC use “main” instead, but I don’t know where.

Did you maybe accidentally create a Win32 project instead of a console project?

problem solved myself with google

now I am again

1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall BitMask<unsigned int,32>::~BitMask<unsigned int,32>(void)" (__imp_??1?$BitMask@I$0CA@@@QAE@XZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class BitMask<unsigned int,32> __cdecl BitMask<unsigned int,32>::bit(int)" (__imp_?bit@?$BitMask@I$0CA@@@SA?AV1@H@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class BitMask<unsigned int,32> __cdecl BitMask<unsigned int,32>::lower_on(int)" (__imp_?lower_on@?$BitMask@I$0CA@@@SA?AV1@H@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::main_loop(void)" (__imp_?main_loop@PandaFramework@@QAEXXZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: class WindowFramework * __thiscall PandaFramework::open_window(void)" (__imp_?open_window@PandaFramework@@QAEPAVWindowFramework@@XZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::close_framework(void)" (__imp_?close_framework@PandaFramework@@QAEXXZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::open_framework(int &,char * * &)" (__imp_?open_framework@PandaFramework@@QAEXAAHAAPAPAD@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall PandaFramework::~PandaFramework(void)" (__imp_??1PandaFramework@@UAE@XZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall PandaFramework::PandaFramework(void)" (__imp_??0PandaFramework@@QAE@XZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall PandaFramework::set_window_title(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?set_window_title@PandaFramework@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall TypeHandle::TypeHandle(void)" (__imp_??0TypeHandle@@QAE@XZ)".
1>C:\Dokumente und Einstellungen\Acer Aspire One\Desktop\test\Release\test.exe : fatal error LNK1120: 11 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://c:\Dokumente und Einstellungen\Acer Aspire One\Desktop\test\test\Release\BuildLog.htm" gespeichert.
1>test - 12 Fehler, 22 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

here…hmm I’ve done everything you said

ok thank you
now it works

i don’t know why, but the linkers deleted themself after that win32 fail.

thank you very much for your help!