views:

15

answers:

0

I am trying to add a .lib file to my project. I have the following in my main.h

#ifndef _UGP_MAIN_H_
#define _UGP_MAIN_H_


#include"StrandedEngine/engine.h"
#pragma comment(lib, "lib/StrandedEngine.lib")

#define WINDOW_CLASS    "StrandedGame"
#define WINDOW_NAME     "Stranded"
#define WIN_WIDTH       800
#define WIN_HEIGHT      600

.................

And for some reason I get the following errors

1>StrandedEngine.lib(D3DRenderer.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (_GUID): (0x02000002).

just curious if anyone knows what it is trying to say. I am using VC++ 2008 Express.

And yes the lib folder and the strandedengine folder rest in the same place as my .sln file and the executable.

I got the code from a book so the executable works but when I open the .sln file and try to run it from there, i get the error.