Porting DOS source to GNU C - Backslashes
Posted on 2000-03-30
I am trying to port a DOS program to Linux using the GNU C compiler. I am stuck on the problem of directory slashes. In our source we frequently have includes that are in a subdirectory of the main header directory. For example:
Naturally, as the software was developed in the DOS/WIN world, we have used the backslash as our directory separator.
Now, when we try to compile with the GNU C compiler, it complains that it cannot find any of the include files that contain the backslashes (No such file or directory). It can find include files that are in the top-level include directory (and therefore have no backslashes), so it's looking in the right place.
Is there a setting, switch or whatever that will allow GNU see to recognize these backslashes and find the files we are trying to include? I tried usind the DIR_SEPARATOR define, but that didn't seem to help anything.