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 !
Problem .obj
Moderator: Moderators
Re: Problem .obj
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;
}
#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;
}
Re: Problem .obj
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".
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".
Re: Problem .obj
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 !!
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 !!
