[omniORB] Issue compiling with Microsoft Visual Studio 2022
Marcin Cieslak
saper at saper.info
Fri Jan 9 12:18:29 UTC 2026
On Fri, 9 Jan 2026, Benjamin Bertrand via omniORB-list wrote:
> Hello,
>
> When trying to compile omniorb 4.3.4 on Windows with Visual Studio 2022, I got the following error:
>
> 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
> 2026-01-08T10:54:03.3633009Z cl : Command line error D8003 : missing source filename
> 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"
> 2026-01-08T10:54:03.3677742Z make[3]: *** [../../../../mk/win32.mk:457: shared/anonObject.o] Error 2
>
> It looks like newer versions of MSVC don’t tolerate -Fd<dir>\.
> We have to pass a real PDB filename.
>
> I applied the attached patch (doing the same as for static).
> Could you please confirm this is the correct thing to do?
According to the docs https://learn.microsoft.com/en-us/cpp/build/reference/fd-program-database-file-name?view=msvc-170
this should still work.
Can you please check if the issue is not rather related to the backslashes?
It seems to treat "-Fdshared anonObject.cc" as one file name containing a space.
Maybe this issue is not related to the visual studio itself, just the command processor your are using?
Marcin
-------------- 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/20260109/96d20287/attachment.p7s>
More information about the omniORB-list
mailing list