Open forum for end-user questions about
Wine . Before asking questions, check out the
Wiki as a first step.
Forum Rules
szczerb
Level 2
Posts: 14 Joined: Thu Sep 25, 2008 3:51 pm
Post
by szczerb » Thu Jan 01, 2009 7:55 am
Here is a sample code:
Code: Select all
#include <iostream>
#include <cstdlib>
#include <wine/msvcrt/conio.h>
int main()
{
std::cout << "Press something...\n";
getch();
return EXIT_SUCCESS;
}
and here is the compile log: (two things are translated from polish so may differ a bit but meaning is the same)
Code: Select all
szczerb@nomad ~/projekty/wine/temp $ make
wineg++ -c -o main.o main.cpp
In file included from main.cpp:3:
/usr/include/wine/msvcrt/conio.h:11:21: error: crtdefs.h: no such file or directory
winegcc: g++ failed
make: *** [main.o] error 2
and the file is there:
Code: Select all
szczerb@nomad ~/projekty/wine/temp $ slocate crtdefs.h
/usr/include/wine/msvcrt/crtdefs.h
Any ideas on that one? ;]
szczerb
Level 2
Posts: 14 Joined: Thu Sep 25, 2008 3:51 pm
Post
by szczerb » Thu Jan 01, 2009 2:12 pm
I just set up crosscompilation with mingw (in Gentoo it's as easy as 'emerge crossdev && crossdev -t i686-mingw32') and it seems to just work.
Still, it would be great if someone here would tell me if I did something really wrong or if I should file a bug report.