<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">> > Hello,</span>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> ></div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > When trying to compile omniorb 4.3.4 on Windows with Visual Studio 2022, I got the following error:</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> ></div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > 2026-01-08T10:54:03.3000214Z ../../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I./.. -I../../../../include/omniORB4/internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING='"4.3.4"' -DOMNIORB_VERSION_HEX='0x040304f1'
-DCONFIG_DEFAULT_LOCATION='"C:\\OMNIORB.CFG"' -DCONFIG_ENV='"OMNIORB_CONFIG"' -D"NTArchitecture" -I. -I. -I../../../../include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared/anonObject.o -Fdshared\\
anonObject.cc</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > 2026-01-08T10:54:03.3633009Z cl : Command line error D8003 : missing source filename</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > 2026-01-08T10:54:03.3651582Z cl -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I.\.. -I..\..\..\..\include\omniORB4\internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING=\"4.3.4\" -DOMNIORB_VERSION_HEX=0x040304f1 -DCONFIG_DEFAULT_LOCATION=\"C:\OMNIORB.CFG\"
-DCONFIG_ENV=\"OMNIORB_CONFIG\" -DNTArchitecture -I. -I. -I..\..\..\..\include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared\anonObject.o "-Fdshared anonObject.cc"</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > 2026-01-08T10:54:03.3677742Z make[3]: *** [../../../../mk/win32.mk:457: shared/anonObject.o] Error 2</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> ></div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > It looks like newer versions of MSVC don’t tolerate -Fd<dir>\.</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > We have to pass a real PDB filename.</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> ></div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > I applied the attached patch (doing the same as for static).</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> > Could you please confirm this is the correct thing to do?</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
></div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> According to the docs https://learn.microsoft.com/en-us/cpp/build/reference/fd-program-database-file-name?view=msvc-170</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> this should still work.</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for the quick reply!</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> Can you please check if the issue is not rather related to the backslashes?</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> It seems to treat "-Fdshared anonObject.cc" as one file name containing a space.</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I think you are right.</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I tried without any backslash and it worked.</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2026-01-12T14:02:21.8423666Z + mkdir -p shared</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2026-01-12T14:02:21.8614231Z ../../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I./.. -I../../../../include/omniORB4/internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING='"4.3.4"' -DOMNIORB_VERSION_HEX='0x040304f1'
-DCONFIG_DEFAULT_LOCATION='"C:\\OMNIORB.CFG"' -DCONFIG_ENV='"OMNIORB_CONFIG"' -D"NTArchitecture" -I. -I. -I../../../../include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared/anonObject.o -Fdshared
anonObject.cc</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2026-01-12T14:02:21.9269148Z anonObject.cc</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2026-01-12T14:02:22.5021053Z cl -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I.\.. -I..\..\..\..\include\omniORB4\internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING=\"4.3.4\" -DOMNIORB_VERSION_HEX=0x040304f1 -DCONFIG_DEFAULT_LOCATION=\"C:\OMNIORB.CFG\"
-DCONFIG_ENV=\"OMNIORB_CONFIG\" -DNTArchitecture -I. -I. -I..\..\..\..\include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared\anonObject.o -Fdshared -TpanonObject.cc</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Segoe UI", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; color: rgb(22, 22, 22);">
<span style="background-color: rgb(255, 255, 255);">In the documentation you linked to, it says: "If you specify a path name that does not include a file name (the path ends in backslash)”.</span></div>
<div dir="ltr" style="font-family: "Segoe UI", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; color: rgb(22, 22, 22);">
<span style="background-color: rgb(255, 255, 255);">So not sure if “shared” is handled as a directory or filename here...</span></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
With only one backslash it doesn’t:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2026-01-13T10:33:21.4977406Z cl : Command line error D8003 : missing source filename</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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"</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> Maybe this issue is not related to the visual studio itself, just the command processor your are using?</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It could be. I’m compiling on conda-forge, so using a conda environment: <a href="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" data-outlook-id="8f5e6f43-4ef8-4a91-b664-cfd33a4e9f45">
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</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Benjamin</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> Marcin</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>