gcc -9 not recognize windows.h; any way to fix it in ubuntu

Asked by Edward Benson on 2019-06-12

I am downloading a source code of a book, "Physics for Gram Developers", by Bourg, David M. and tried its first example, cannon.c
.h files to compile on my ubuntu19.04; but it certainly won't work at gcc(9); do any one know some simple way (open source side's
graphics/API library) I can use?

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

I assume that the example is designed to run on a Microsoft Windows system, and I do not know whether it is possible to compile and run it on Linux systems at all.

The best chances that I see for Ubuntu are with the wine emulator (eventually using mingw for compiling).

Edward Benson (edward8) said : #2

thx, your reply, I tried wine and soft link windows.h in my system to /usr/include/
but meet some other error(s)
I am sure I should end this topic here then reopen another or not
at compile process, by microsoft visual c++ 6.0 standard(assume it is highest version of 32 bit, fit flavor of wine), 's command line c compiler, CL.EXE; I got two errors, first is

mspdb60.dll (need by ...... CL.EXE)

and another similar dll related one needed(missing or not found )

I tried search google, some (in ubuntu too) suggest the following

 Re: err:module:import_dll Library MSVBVM60.DLL???

    This is how I THINK I did it-

    Command line.....

    Installed winetricks (somehow)

    $ winetricks

    Then "Select the default wine prefix"


    Then "Install a Windows DLL or component"
I choose

then retried to do compile my .c file again; same two errors:

with (1)
0009:err:module:attach_dlls Importing dlls for L"Z:\\home......CL.EXE" failed, status c0000135

plz help again

Manfred Hampl (m-hampl) said : #3

Sorry, but I do not have any experience with Windows compilers/linkers under wine.

General advice: If you get a message like
whatever.dll not found
then you should try to find a source to download that dll file and put it into some specific windows/system directory within wine.

Maybe the wine AppDb provides some hints; in your case the relevant page probably is

Can you help with this problem?

Provide an answer of your own, or ask Edward Benson for more information if necessary.

To post a message you must log in.