Add all cpp instead of lib...

Hoskiss

21-11-2008 05:14:24

Hello,everyone

My problem is that i want to add some waves like Florent,so i just add all

source cpps and h files to my projects,rebuilding them instead of using

Hydrax.lib,and i also include OgreMain.lib,OIS.lib,winmm.lib,but after that,

i still get 110 link errors like this:


Linking...
1> Creating library .\bin\release\Demo1.lib and object .\bin\release\Demo1.exp
1>CfgFileManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 const & __thiscall Hydrax::Hydrax::getGodRaysExposure(void)const " (__imp_?getGodRaysExposure@Hydrax@1@QBEABVVector3@Ogre@@XZ)
1>CfgFileManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Hydrax::Module::Module * __thiscall Hydrax::Hydrax::getModule(void)" (__imp_?getModule@Hydrax@1@QAEPAVModule@21@XZ)
1>CfgFileManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: float const & __thiscall Hydrax::Hydrax::getCausticsEnd(void)const " (__imp_?getCausticsEnd@Hydrax@1@QBEABMXZ)
1>CfgFileManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Hydrax::GodRaysManager * __thiscall Hydrax::Hydrax::getGodRaysManager(void)" (__imp_?getGodRaysManager@Hydrax@1@QAEPAVGodRaysManager@1@XZ)
1>CfgFileManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: float const & __thiscall Hydrax::Hydrax::getCausticsPower(void)const " (__imp_?getCausticsPower@Hydrax@1@QBEABMXZ)


Somebody could help me to solve the problem?

Thank you very much and sorry if I wrote english mistakes :D

Xavyiy

21-11-2008 09:52:31

I think you're in the wrong way doing this, I think one of Ogre/C++ feature is allow modulables interfaces(libraries), that add an extra clean point to projects.

I think you must create another Hydrax::Noise module(Like perlin noise module) and add ripples support here, there is no reason to add all cpp to your project and make bigger and bigger your executable.

Abou your problem, semms that you haven't add all cpp's to your project.

Xavi

Hoskiss

25-11-2008 04:42:08

Thank Xavyiy.You're a kind man.

I think you point out the way to do this. I'm not very similar with Ogre and
I didn't think about modulable interfaces or some structures. I'll try to figure out that and do something.

THX again :)