Problem .obj

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
jonas10
Posts: 4
Joined: Thu Jun 20, 2013 5:51 am

Problem .obj

Post by jonas10 »

Hello everybody,

I have a serious problem with my ".obj" auto created files.

When I try to build a simple function like "SiInitialize()", I have the error :"

"
1>LINK : fatal error LNK1123: échec lors de la conversion en fichier COFF : fichier non valide ou endommagé
"

(sorry I use it in french)

So then I put "off" the manifest incorporation in the properties of my project and this is what I find :

"
1>main2.obj : error LNK2019: symbole externe non résolu _SiInitialize référencé dans la fonction _main
1>C:\Users\Jonas\Desktop\test\Debug\test.exe : fatal error LNK1120: 1 externes non résolus
"


Is someone can help me ?

Thanks a lot !
jonas10
Posts: 4
Joined: Thu Jun 20, 2013 5:51 am

Re: Problem .obj

Post by jonas10 »

Oh sorry I forgot : I use Visual Studio 2010 and this is my code :

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <3Dconnexion/si.h>
#include <3Dconnexion/spwdata.h>
#include <3Dconnexion/siapp.h>

using namespace std;

int main () {

SiInitialize();

return 0;
}
ngomes
Moderator
Moderator
Posts: 3431
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Problem .obj

Post by ngomes »

Hi jonas10,

Perhaps you have not added the siapp.lib to your linker settings? Check one of the demo linker settings in project properties > Configuration Properties > Linker > Input: the siapp.lib should be listed in "Additional Dependencies"; and project properties > Configuration Properties > Linker > General: the siapp.lib location should be included in the "Additional Library Dependencies".
jonas10
Posts: 4
Joined: Thu Jun 20, 2013 5:51 am

Re: Problem .obj

Post by jonas10 »

Thank you ngomes !!
I'm sorry I've just begun VS and i'm not yet really familiar with. :?
I forgot to include the additional properties. (By the way my first problem was coming by installing VS2012. If it occurs please uninstall NET 4.5 and install NET 4.0)
Bye and thanks again !! :D
Post Reply