Bonjour,
Quand je veux compiler une project msvc utilisant OSG :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "stdafx.h"
 
/*#include <carve/carve.hpp>
#include <carve/geom3d.hpp>
#include <carve/poly.hpp>
#include <carve/polyhedron_base.hpp>
#include <carve/csg_triangulator.hpp>*/
#include <osg/Matrixf>
#include <osg/MatrixTransform>
#include <osg/Vec3>
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/UniForm>
 
 
.....
 
 
 
 
 
 
int _tmain(int argc, _TCHAR* argv[])
{
	//BBBB
	osg::Vec3 result;
	{
		osg::Matrixf ee71;
 
 
		....
 
 
 
	}
 
	return 0;
}
eh bien j'ai le droit à ce message d'erreur :

1>------ Build started: Project: osg_carv, Configuration: Debug Win32 ------
1>osg_carv.obj : error LNK2019: unresolved external symbol "public: void __thiscall osg::Matrixf::set(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)" (?set@Matrixf@osg@@QAEXMMMMMMMMMMMMMMMM@Z) referenced in function "void __cdecl convertIfcAxis2Placement3D(class osg::Vec3f,class osg::Vec3f *,class osg::Vec3f *,class osg::Matrixf &,double)" (?convertIfcAxis2Placement3D@@YAXVVec3f@osg@@PAV12@1AAVMatrixf@2@N@Z)
1>osg_carv.obj : error LNK2019: unresolved external symbol "public: void __thiscall osg::Matrixf::makeIdentity(void)" (?makeIdentity@Matrixf@osg@@QAEXXZ) referenced in function "public: __thiscall osg::Matrixf::Matrixf(void)" (??0Matrixf@osg@@QAE@XZ)
1>osg_carv.obj : error LNK2019: unresolved external symbol "public: void __thiscall osg::Matrixf::mult(class osg::Matrixf const &,class osg::Matrixf const &)" (?mult@Matrixf@osg@@QAEXABV12@0@Z) referenced in function "public: class osg::Matrixf __thiscall osg::Matrixf::operator*(class osg::Matrixf const &)const " (??DMatrixf@osg@@QBE?AV01@ABV01@@Z)
1>E:\source\vc\recherche\osg_carv\Debug\osg_carv.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Incompétent.

Pouvez - vous m'aider concernant la librairie OSG ?
Je veux compiler mon projet avec preprocessor 'OSG_LIBRARY_STATIC'.

Merci.