Error message: no 'object' file generated
When I build my AllJoyn project, follow the instructions on https://allseenalliance.org/developers/develop/building/windows/build-source .
It build fails on Windows with Visual Studio 12.0. The build command used was as below: scons OS=win7 CPU=x86 MSVC_VERSION=12.0 BINDINGS=cpp.
It would be very helpful if anyone can help. Thanks!!
The error message are as follow:
AboutServiceMain.cc
services\about\cpp\samples\AboutServiceSample\AboutServiceMain.cc:error C220: warning treated as error - no 'object' file generated
services\about\cpp\samples\AboutServiceSample\AboutServiceMain.cc: warning C4819: The file contains a character that cannot be represented in current code page<950>. Save the file in Unicode format to prevent data loss
scons: *[build\win7\x86\debug\obj\about\cpp\samples\AboutServiceSample\AboutServiceMain.obj] Error 2
scons: building terminated because of errors
It builds success when I mark all the content of the function "static QStatus FillAboutPropertyStoreImplData(AboutPropertyStoreImpl* propStore, OptParser const& opts)". But It still builds fails when building the file AboutDataTest.cc with the same error message.
bling ( 2015-01-19 02:16:37 -0800 )editI add '/wd4819' in "env.Append(CXXFLAGS=)" in the file conf\windows\SConscript, and It builds success!
bling ( 2015-01-19 18:17:12 -0800 )editWhat version of AllJoyn or branch did you attempt to build ? What you are seeing should not be the case. You shouldn't need to add any extra flags to build any sample.
Nikhil Dabhade ( 2015-01-20 12:57:52 -0800 )editWhere can I find the version? I used the instruction "git clone https://git.allseenalliance.org/gerrit/core/alljoyn.git" to download the source code
bling ( 2015-01-20 16:53:42 -0800 )edityou can grab the source here: https://allseenalliance.org/developers/download as well as the windows SDK
ry.jones ( 2015-01-29 12:40:20 -0800 )edit