currently i'm trying to port a Windows program to Linux, more specific a DLL. The code is written in C++ and uses many Winapi calls. Since i don't want to rebuild the whole thing from scratch i thought recompiling with Winelib is a good start and worth a try but i have never used it before. So i used Winemaker to prepare the code and create a Makefile. Using make prints out an error that says windows.h cannot be found. Well, i'm using Ubuntu right now, so of course it can't be found but i thought using wineg++ would take care of such things by underlaying a wineapi-layer.
I read the Winelib Userguide but it seems like i don't really get the concept.
What am i missing here? This surely won't be the last Problem i'm encountering with Winelib
Windows.h cannot be found using Winemaker/Winelib
1k views Asked by Metalzwerg At
1
There are 1 answers
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in WINAPI
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Changing the theme of a #32768 (menu) window class at runtime
- Issue with GetOpenFileName while debugging
- How to populate a ListBox with SendMessage?
- Is there a function to end a child process?
- HDR video publishing
- Frameless Qt + WinAPI maximized window size is bigger than the availableGeometry()
- Mount .iso file with python
- What is Win32 x86-64 CONTEXT::VectorRegister for?
- WinAPI - right mouse drag & drop and IContextMenu
- Win32 per-filesystem cache tuning?
- Client connection timeout during Android & Windows PC communication via sockets
- MessageBoxEx sometimes shows as hollow window, border only, and only on Windows 11
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Would it be possible to run an application right after csrss.exe loads? (Windows)
Related Questions in WINELIB
- Getting winegcc to link with dll. linker input file not used because linking not done, *.o is an empty file
- Veil Installation Stuck at wine
- Is it possible to speed up a program using a VM?
- How to wrap a Linux library to be used in Wine? I keep getting BAD_IMAGE_FORMAT
- Trying to use Winelib with standard macOS build tools: getting strange compiler errors
- Problems compiling C++ programs with wineg++/winelib
- Trying to use Mac dll (bundle) on Wine
- C++ calling conventions -- converting between win32 and Linux/GCC?
- Wine spec files
- checking internet connection in c++ using internetcheckconnection
- Building VC++ 2010 apps for Linux over winelib with winemaker
- Compiling Socket Program in C with Windows API on linux using Winelib
- Calling .dll in linux environment in c++
- Windows.h cannot be found using Winemaker/Winelib
- Wine error: Application tried to create a window, but no driver could be loaded
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It's not a perfectly fitting solution but drdobbs.com posted in interesting article about wine, winelib and porting to Linux here. So using winemaker and wineg++ is a good start but one also have to add the Compiler directive
-Iwine/include. there are the equivalents towindows.hetc. hidden. It also says that code compiled that way still needs Wine to work properly to ensure that hardcoded paths likeC:\Program Files\...are still available. If These aren't existing, it may work without Wine, but i'm absolutely NOT sure about this.