Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Allegro with VC++ 2003, pc.h not found

This thread is locked; no one can reply to it. rss feed Print
Allegro with VC++ 2003, pc.h not found
Manuel Di Cerbo
Member #6,624
November 2005

I'd like to start programming with Allegro and use my Visual Studio C++ compiler. After I checked all the Manuals (http://www.allegro.cc/docs/windows-msvc-use.html, as well) I got the compiler-error "pc.h not found". After googleing looking for this file i found the code of "pc.h" and put the file into my include folder; the compiler was now easy with that but asked me for "dir.h" - same again, I found the code by googleing. Again the compiler did not want that file anymore, instead he asks for "dpmi.h".

Am I doing something wrong? I've already found out that those headers have something to do with DOS. And now I can't find a version of "dpmi.h" anywhere on the net.

Can someone help me out? Is this a common problem?

Thanks and Greeting
Neopop

X-G
Member #856
December 2000
avatar

It's trying to compile the DJGPP port. You didn't run fix msvc or whatever the instructions tell you to do these days.

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

ReyBrujo
Moderator
January 2001
avatar

pc.h, dir.h, dpmi.h... all those are DOS-specific headers, usually found in Borland Turbo C++ 3.0. As you can imagine, you won't find them in VC, as it is a pure Windows compiler. And just copying those headers to your VC include folder won't work, as you need the libraries associated to those headers too.

Your best bet is deleting all those headers from the program you want to compile, and begin replacing the DOS-only functions the program uses with Windows-like ones. Or find a Windows source you can compile, instead of that old DOS program. The last option is installing a Turbo C++ 3.0 compiler, but good luck finding it somewhere.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Evert
Member #794
November 2000
avatar

Quote:

Am I doing something wrong?

Yes, you didn't compile Allegro for Windows. Please say what you did exactly and check with the manual that it's really what you should be doing.
Or grab a binary version of Allegro and install that.

A J
Member #3,025
December 2002
avatar

did you read the allegro/docs/build/msvc.txt

___________________________
The more you talk, the more AJ is right. - ML

Manuel Di Cerbo
Member #6,624
November 2005

I used the binary version of Allegro and put the libs and headers into the corresponding folders of vc++. Now I'm trying to compile the other Version, hope that will work.

Go to: