project-navigation
Personal tools

Author Topic: Visual Studio 2005 Linking Errors  (Read 17355 times)

Epsilon

  • Guest
Re
« Reply #15 on: April 19, 2007, 07:56:19 am »
I have VS 2003 installed - I can give it a try.  However, I can't seem to find the appropriate .sln files?

If I can't get this to work, I'll download CodeBlocks or devc++ like you suggest.

Thanks

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Visual Studio 2005 Linking Errors
« Reply #16 on: April 19, 2007, 11:08:03 am »
it would be cool if you could fix the linking - compilation is working for all projects - but the linking is not - maybe you can try to other zlib.lib's? or compile one yourself? i have have that much a clue of vc - so i won't be a big help here.

Epsilon

  • Guest
Success
« Reply #17 on: April 19, 2007, 09:19:32 pm »
Hi All,

After looking at the zlib example projects, I was able to get the project to compile and link.  I had to add
ZLIB_WINAPI
to the preprocessor definitions, and remove
Z_PREFIX
.

I also had to add
..\..\src\ports\win32\zlib1.lib
to the dependancies list.

There was one other linker problem:
IsDebuggerPresent()
in sys_win.c.  I commented this out for now - can anyone comment on this call?

There are runtime errors, but at least I can get it to compile and link.

Alex

  • Guest
Visual Studio 2005 Linking Errors
« Reply #18 on: April 19, 2007, 10:05:31 pm »
Nice work dude, glad you got it to work...

Not sure about the other linker problem.