Starting Panda3D (CXX) for windows

i need help i just cant figure out this
i followed the manual

heres my cxx file
#include “pandaFramework.h”
#include “pandaSystem.h”

PandaFramework framework;

int main(int argc, char *argv[]) {
//open a new window framework
framework.open_framework(argc, argv);
//set the window title to My Panda3D Window
framework.set_window_title(“My Panda3D Window”);
//open the window
WindowFramework *window = framework.open_window();

//here is room for your own code

//do the main loop, equal to run() in python

framework.main_loop();
//close the window framework
framework.close_framework();
return (0);
}

heres my .o file

g++ -c tom.cxx -o tom.o -fPIC -O2 -I"c:\python26\include\python.h" -I"c:\Panda3D-1.5.4\thirdparty\win-libs-vc8\nspr\include" -I"C:\Panda3D-1.5.4\include"

heres my exe file

g++ tom.o -o tom.exe -fPIC -L"C:\Panda3D-1.5.4\lib" -lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -L"C:\Panda3D-1.5.4\thirdparty\win-libs-vc8\nspr\lib" -lpandanspr4

in the end of the manual it says then type
filename.exe

do i type it in my command prompt or what cause i tried it and it doesnt work

You obviously followed the manual page for Linux. Panda3D programs on windows don’t compile under MinGW, instead, use Visual Studio 2005. There’s plenty of information on the forums as to how to set it up.