_findfirst, _findnext and _findclose unresolved on link

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
utNero
Posts: 14
Joined: Tue Apr 10, 2007 1:13 am

_findfirst, _findnext and _findclose unresolved on link

Post by utNero »

Hi, I am encountering just the following three errors building Irrlicht on one of our machines (Windows XP Pro SP2) in Visual Studio 2005 (the other machine with what I thought was exactly the same configuration builds the project just fine):

Code: Select all

1>CFileList.obj : error LNK2001: unresolved external symbol "int __cdecl irr::io::_findnext64i32(int,struct irr::io::_finddata64i32_t *)" (?_findnext64i32@io@irr@@YAHHPAU_finddata64i32_t@12@@Z)
1>CFileList.obj : error LNK2001: unresolved external symbol "int __cdecl irr::io::_findfirst64i32(char const *,struct irr::io::_finddata64i32_t *)" (?_findfirst64i32@io@irr@@YAHPBDPAU_finddata64i32_t@12@@Z)
1>CFileList.obj : error LNK2001: unresolved external symbol "int __cdecl irr::io::_findclose(int)" (?_findclose@io@irr@@YAHH@Z)
1>../../../build/Irrlicht.dll : fatal error LNK1120: 3 unresolved externals
Is anyone aware of Visual Studio settings that may cause this to happen?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I don't know why you are running into this particular problem, as I've build the library many times without ever seeing this error.

It is likely because the #include lines are inside the irr::io namespace. This is confusing the linker into looking for the functions in the wrong place. You might try moving the includes up above the namespace decls.

If you haven't already tried this, you might use the existing Irrlicht project file and modify it. It sounds like you may be trying to create a project file from scratch.

Travis
utNero
Posts: 14
Joined: Tue Apr 10, 2007 1:13 am

Post by utNero »

Thanks. The strange thing is that this very same project works just fine on a very similar machine in the same lab. And we did use the existing Irrlicht project as the basis for ours.
Post Reply