🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Embedding Python into Dev-C++
I''ve got a problem embedding Python into a game I''m doing using Dev-C++. Basically, the windows libraries you can download are *.lib, but GCC uses *.a libraries.
Has anyone compiled the libraries for Dev-C++? I''m on dialup, so downloading the whole Cygwin compilation package is pretty much out of the question.
[teamonkey]
I haven't compiled the libraries myself, instead I used the .lib files that came with the package (Python 2.2.3 for Windows). Dev-C++ (my version: 4.9.8.1) has no problem using them. All I had to do was:
- add the python/include dir to my project's include dir setting
- same with the python/libs dir
- add "-lpython22" to "Project Options/Command Line/Linker"
Worked perfectly.
My Wonderful Web Site (C++ SDL OpenGL Game Programming)
I am a signature virus. Please add me to your signature so that I may multiply.
[edited by - randomZ on July 4, 2003 1:45:41 PM]
- add the python/include dir to my project's include dir setting
- same with the python/libs dir
- add "-lpython22" to "Project Options/Command Line/Linker"
Worked perfectly.
My Wonderful Web Site (C++ SDL OpenGL Game Programming)
I am a signature virus. Please add me to your signature so that I may multiply.
[edited by - randomZ on July 4, 2003 1:45:41 PM]
Are you sure about this? I know this wasn''t possible before, and would be very surprised if it is now... .lib and .a are in different formats, and .a is what GCC uses, so I don''t get it... Perhaps you have the python libraries compiled for GCC somewhere in the path that you''re not aware of?
--------
Leave all your expectations behind, or
they''ll pull you down on your way to the top.
-Ivan
--------
Leave all your expectations behind, or
they''ll pull you down on your way to the top.
-Ivan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement