Advertisement

compiling

Started by August 09, 2000 08:27 PM
4 comments, last by alex mcandrew 24 years, 4 months ago
Ok, here''s my third patheitc problem...hehe. I''m trying to load bitmaps into my program. Of course I''m just using the code that Andre wrote (WGPFD, Chapter 10). When I try compiling, I get the following error: call to undefined function ''_lseek'' I have the ddraw.lib file linked (thanks to my last post), so that shouldn''t be a problem (don''t know why it would). Ok, thanks in advance, because I know that someone will be able to help me.
--------------------Help Needed!Turn-based 20th century strategy wargameTitle still to be determined
_lseek is not part of DirectX. All it does is moving a file pointer to a location. You have to include io.h in your source in order to use it.

Hope this helps
Advertisement
Hi again. I posted this question at the www.xgames3d.com forum, and I was also told stuff about different include files. However, I don''t think that''s the problem, because I have all .h files included (according to WGPFD).
Please help me further. THanks.
--------------------Help Needed!Turn-based 20th century strategy wargameTitle still to be determined
What compiler are you using?

First of all, make sure you have all necessary files included (io.h in this case) because that''s the most obvious cause.

Also, if you''re not using VC++ (or maybe if you''re using an old version, Im not sure) then ''_lseek'' might need to be changed to ''lseek''

I think adding the underscore for old functions is only a Microsoft convention. I know when I used to use Borland C++Builder, I had to remove some underscores to compile the WGPDUMB code.


Good luck.
Also look for stdio.h and/or stdlib.h
Might want to search the include directories for *.h or *.c for _lseek()

ZoomBoy
Developing a 2D RPG with skills, weapons, and adventure.
See my character editor, Tile editor, diary, 3D Art resources at
Check out my web-site
Thanks for the help. You were right, I just had to get rid of the underscore. Strange... Thanks again.
--------------------Help Needed!Turn-based 20th century strategy wargameTitle still to be determined

This topic is closed to new replies.

Advertisement