OpenStudioApplication icon indicating copy to clipboard operation
OpenStudioApplication copied to clipboard

Build with Clang on Windows

Open macumber opened this issue 4 years ago • 4 comments

macumber avatar Nov 28 '21 21:11 macumber

Is this ready for review? Looks like the clang MSVC runner failed. There are conflicts too apparently.

jmarrec avatar May 01 '22 19:05 jmarrec

No I didn't get this working yet, looks like I can't convert to draft PR because of the conflict

macumber avatar May 01 '22 23:05 macumber

  Building Custom Rule D:/a/OpenStudioApplication/OpenStudioApplication/ruby/CMakeLists.txt
lld-link : error : undefined symbol: __declspec(dllimport) int `public: static class Singleton<class openstudio::IddFactorySingleton>::IddFactorySingleton & __cdecl openstudio::Singleton<class openstudio::IddFactorySingleton>::instance(void)'::`2'::$TSS0 [D:\a\OpenStudioApplication\OpenStudioApplication\build\ruby\openstudio_modeleditor_rb.vcxproj]
  >>> referenced by openstudio_modeleditor.lib(InspectorDialog.obj):(private: void __cdecl InspectorDialog::init(class InspectorDialogClient))
  >>> referenced by openstudio_modeleditor.lib(InspectorDialog.obj):(private: void __cdecl InspectorDialog::init(class InspectorDialogClient))
  >>> referenced by openstudio_modeleditor.lib(InspectorDialog.obj):(private: void __cdecl InspectorDialog::init(class InspectorDialogClient))
  >>> referenced 6 more times
  
lld-link : error : undefined symbol: __declspec(dllimport) int `public: static class Singleton<class openstudio::LoggerSingleton>::LoggerSingleton & __cdecl openstudio::Singleton<class openstudio::LoggerSingleton>::instance(void)'::`2'::$TSS0 [D:\a\OpenStudioApplication\OpenStudioApplication\build\ruby\openstudio_modeleditor_rb.vcxproj]
  >>> referenced by openstudio_modeleditor.lib(InspectorDialog.obj):(void __cdecl boost::assertion_failed(char const *, char const *, char const *, long))
  >>> referenced by openstudio_modeleditor.lib(InspectorDialog.obj):(void __cdecl boost::assertion_failed(char const *, char const *, char const *, long))
  >>> referenced by openstudio_modeleditor.lib(InspectorDialog.obj):(int `void __cdecl boost::assertion_failed(char const *, char const *, char const *, long)'::`1'::dtor$58)
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved

maybe need a UTILITIES_API on https://github.com/NREL/OpenStudio/blob/73c67b3969ab4963ecfacc735040d2b6dc99c931/src/utilities/core/Singleton.hpp#L40?

jmarrec avatar May 05 '22 11:05 jmarrec

@macumber FYI I had to force push and it was refusing to merge properly (shorthand MERGE_HEAD not found or whatever)

jmarrec avatar May 05 '22 15:05 jmarrec