fatal error LNK1104: cannot open file 'python27.lib'

Return to Compiling or Editing the Panda Source

fatal error LNK1104: cannot open file 'python27.lib'

Postby AI 23 » Tue Jun 19, 2012 1:47 pm

Can anyone help me. This is probably a stupid question but im a newby. So, I was doing the first example program in the panda manual with this code:

#include "pandaFramework.h"
#include "pandaSystem.h"

PandaFramework framework;

int main (int argc, char *argv[])
{
framework.open_framework (argc, argv);
framework.set_window_title ("My Panda3D Window");
WindowFramework *window = framework.open_window();

if (window != (WindowFramework *)NULL)
{
nout << "opened the window successfully!\n";
window->enable_keyboard();
window->setup_trackball();
framework.main_loop();
}
else {nout << "could not load the window!\n";}
framework.close_framework();
return (0);
}

and I included the include files from panda 1.7.2 and python 2.7 and it shows fatal error LNK1104: cannot open file 'python27.lib' when I try to build the project in Microsoft Visual c++ 2010 Express. It compiles fine though. I exactly dont know how to run it once you compile like in dev-cpp. I also tried including the python include file that comes with panda and it showed the same "fatal error" except with python26.lib.

So will someone explain what I have to do about the error and whether to run the program I have to click build project because there is no execute or run button under the build option on the toolbar.
AI 23
 
Posts: 2
Joined: Mon Jun 18, 2012 7:12 pm

Postby AI 23 » Tue Jun 19, 2012 4:52 pm

Ok i figured out how to work vis c++ but i still need someone to explain how i can get rid of the error that it shows during compilation. :?
AI 23
 
Posts: 2
Joined: Mon Jun 18, 2012 7:12 pm


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 0 guests