[omniORB] Issue compiling with Microsoft Visual Studio 2022
Marcin Cieslak
saper at saper.info
Tue Jan 13 16:43:06 UTC 2026
On Tue, 13 Jan 2026, Benjamin Bertrand wrote:
> With only one backslash it doesn’t:
>
> 2026-01-13T10:33:21.4579967Z ../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -D_OMNITHREAD_DLL -I. -I. -I../../../include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared/nt.o -Fdshared\ nt.cc
> 2026-01-13T10:33:21.4977406Z cl : Command line error D8003 : missing source filename
> 2026-01-13T10:33:21.4995747Z cl -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -D_OMNITHREAD_DLL -I. -I. -I..\..\..\include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared\nt.o "-Fdshared nt.cc"
>
>> Maybe this issue is not related to the visual studio itself, just the command processor your are using?
>
> It could be. I’m compiling on conda-forge, so using a conda environment: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1435250&view=logs&j=535b614b-9e28-51ef-eb67-d0aa83d01d61&t=f3b82646-01b4-574c-79b5-1561965b3e04
>
> Benjamin
Well this is an enviornmental problem... In the meantime Windows understands Unix slashes more and more, maybe a single slash at the end would work?
Since the "\\ " combination, or better written out below in the Unicode characters, produces
a single space that is treated as a part of the argument
Unicode Character 'REVERSE SOLIDUS' (U+005C)
Unicode Character 'REVERSE SOLIDUS' (U+005C)
Unicode Character 'SPACE (SP)' (U+0020)
does it work if you use four backslashes instead "\\\\ "
Unicode Character 'REVERSE SOLIDUS' (U+005C)
Unicode Character 'REVERSE SOLIDUS' (U+005C)
Unicode Character 'REVERSE SOLIDUS' (U+005C)
Unicode Character 'REVERSE SOLIDUS' (U+005C)
Unicode Character 'SPACE (SP)' (U+0020)
To further troubleshoot this I think there might be an error in the way
D:\a\_temp\58292c41-7f29-49bd-933b-fc51c78aa3ac.cmd or some other .bat file gets generated.
Definitely those commands should be run with CMD but not with an UNIX shell.
Can you ask it to run it under cmd?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3706 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20260113/aaec8b57/attachment-0001.p7s>
More information about the omniORB-list
mailing list