[omniORB] Issue compiling with Microsoft Visual Studio 2022

Benjamin Bertrand benjamin.bertrand at maxiv.lu.se
Fri Jan 9 09:16:03 UTC 2026


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?

Thanks

Benjamin



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20260109/c4f86c7b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Patch-for-shared-C-objects-on-windows.patch
Type: application/octet-stream
Size: 2294 bytes
Desc: 0001-Patch-for-shared-C-objects-on-windows.patch
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20260109/c4f86c7b/attachment.obj>


More information about the omniORB-list mailing list