4

I'm trying to compile a very simple C file with winegcc that utilizes #include <windows.h>

The compilation fails because it cannot find windows.h

The code is nearly identical to a prior stackoverflow post, viz:

Are there any way to link my program with Wine-compiled part?

I installed wine on Ubuntu 13.04 using:

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get install wine1.6

The source file is nxwrap.c:

    #include <stdio.h>
    #include <windows.h>

    int main(int argc,char **argv){

     HMODULE h;

     h = LoadLibrary("NxCoreAPI64a.dll");

     printf("%d\n",h);

     return 1;
    }

Going for an a.out, the command line call is:

    $ winegcc nxwrap.c
    nxwrap.c:2:21: fatal error: windows.h: No such file or directory
    compilation terminated.
    winegcc: gcc failed

locate from the command line cannot find the <windows.h> system header anywhere on the FS.

Is there an additional ubuntu package that I have to install for wine dev? Any ideas as to what I'm missing? Thanks.

Community
  • 1
  • 1
user2777502
  • 41
  • 1
  • 3
  • 1
    Not sure if this is adequately about programming or more about Ubuntu. I'm going to recommend you cross-post this at [AskUbuntu](http://www.askubuntu.com). – jwarner112 Sep 13 '13 at 19:09
  • 2
    Thanks. The AskUbuntu answer was to install an additional dev package (wine1.6-dev to be exact). – user2777502 Sep 16 '13 at 15:04

1 Answers1

3

The AskUbuntu answer was to install an additional dev package (wine1.6-dev to be exact).

Velkan
  • 7,067
  • 6
  • 43
  • 87