Archived
This forum has been archived. Please start a new discussion on GitHub.
icecpp and relative paths
Craig
in Help Center
Hi. Should
icecpp.exe ..\foo.ice
work as expected on Windows?
In cccp.c::base_name, the backslash is not detected as a path separator, which ultimately causes preprocessing of one of my files to fail. I recompiled icecpp.exe with DIR_SEPARATOR defined to '\\' and things worked as expected. This was manifested when foo.ice contained a relative path #include.
Thanks,
Craig
icecpp.exe ..\foo.ice
work as expected on Windows?
In cccp.c::base_name, the backslash is not detected as a path separator, which ultimately causes preprocessing of one of my files to fail. I recompiled icecpp.exe with DIR_SEPARATOR defined to '\\' and things worked as expected. This was manifested when foo.ice contained a relative path #include.
Thanks,
Craig
0
Comments
-
I forgot to mention: In Slice files, you must use the forward slash for #include statements. Backslashes in Slice #include statements do not work. (I guess our documentation has to be modified to point this out.)
However, for pathnames passed to slice2xxx, both forward and backslashes should work. Backslashes are then translated to forward slashes before such paths are passed to icecpp.0
