CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    27

    compile windows dependent code in Ubuntu (Linux kernal)

    Hello,

    I have written a lot of C++ code in VS2005 express. specifically it depends on tchar.h and direct.h. For various reasons i cannot use windows any more and have to continue the project under ubuntu linux. I can complie standard C++ programs using g++ from the therminal, however some of the more complecated programs have dependencies such as tchar.h and direct.h which are supported by windows only. Is there a way of simulating these on linux (WINE?) or better still replacing the relevent parts of the code with a native linux alternative. For example tchar is used to set a file structure in windows format ie c:\... and this is meaningless under linux. Specifically a way of setting up a folder system into which data txt files can be written is needed and any example code would be great.

    also what code calls direct.h?

    any help would be great

    James

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: compile windows dependent code in Ubuntu (Linux kernal)

    Instead of seeking to replace entire header files, what specific functions, constants, etc. in tchar.h and dirent.h do you need to replace for Linux?

    Regards,

    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured