473,418 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Porting windows code to Linux

1
Hi

I want to use VCG Library (http://www.vcglib.net/index.html) in my C++ OpenGL code in Linux.

According to the installation instructions for VCGLib one simply clones the repository and includes the header files.
There are numerous header sub-directories and *.h files.

One of the header files (dirent.h) #includes <windows.h>. I have installed Wine (sudo apt-get -y install libwine-dev)
but don't know how to replace the the "#includes <windows.h>" which is meant to define numerous identifiers,
see: https://ibb.co/8X4Yhdh

There are 38 windows identifiers needing porting, giving me compile errors in my C++ code on Linux. Is there a Linux (Ubuntu) equivalent file for Windows.h?

Alternatively, how should I port the windows identifiers (in the attached image) for Linux?

Thanks.
Aug 26 '23 #1
0 6043

Sign in to post your reply or Sign up for a free account.

Similar topics

35
by: Vamsi Mudrageda | last post by:
I am kind of new to Python, and after trying and using wxPython, I found it kind of lacking in easy-to-read documentation, speed at loading, and GUI response-time. So I am looking for an another...
8
by: seth | last post by:
Hello, I am new to the open source environment. We have to develop a web application using Apache/PHP/MySQL on Windows (A component that we want to use is available only on Windows for now)....
6
by: JaxDawg | last post by:
OK... Crazy (possibly dumb) question here... I have a site running apache, mysql, php in a Win2K environment. Primary development is that env also. I also am setting up a linux box (old laptop),...
2
by: Robert.Fagnoni | last post by:
I am having a problem getting DB2PE working. I have DB2PE installed on a Windows box and am trying to monitor databases on a Linux box. I getting an error about shared file systems between...
7
by: Lior | last post by:
Hi, I have small code, that compiles on Visual C++ into a shared library (DLL). I need to compile it under linux, but the code includes some data types I'm not familiar with, such as DWORD,...
1
by: sandy143 | last post by:
In Windows we use AfxBeginThread() function to create a new thread what is the equalent function in Linux.if any one know about this please reply to this query.. thank n Advance. sandy143
4
by: junky_fellow | last post by:
guys, I need to write a program that should work on both windows and linux systems. I have to do lot of file handling (file creation, checking access permissions etc) and have to use lots of...
20
by: macca | last post by:
Hi, I just started a new web developer job (my first actually) and the machine they gave me to use is a Mac. Two days in and I'm running a Win XP environment on my Mac at work (using VMWare), ...
2
by: tvnaidu | last post by:
Lot of Windows code (dll) need to port to Linux, can somebody gives some clues, what to takecare mainly. not sure whether similar cals available in Linux: 1) LoadLibrary.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.