Porting windows code to Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CraigA
    New Member
    • Aug 2023
    • 1

    Porting windows code to Linux

    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.
Working...