Google Play Games C++ SDK v3.0 not a drop in replacement? - android-ndk

I have been using the C++ SDK of Google Play Games: gpg_cpp_sdk.v2.3.zip
I have now downloaded the new version gpg_cpp_sdk.v3.0.zip as available from Google.
Whereas the 2.3 version would work just fine, during build, and during runtime, I have not been able to link against the 3.0 version.
I get this error:
[178/178] : && /home/bram/android-sdk-linux/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/home/bram/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/bram/android-sdk-linux/ndk-bundle/sysroot -fPIC -isystem /home/bram/android-sdk-linux/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -marm -mfpu=neon -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -DANDROID=1 -DPLAY=1 -DUSEES2=1 -DLOGTAG=swaag -DAPPVER=4.40 -DDEBUG -O0 -fno-limit-debug-info -fuse-ld=gold -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot /home/bram/android-sdk-linux/ndk-bundle/platforms/android-16/arch-arm -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libbuggy.so -o /home/bram/apps/Buggy/AndroidStudio/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libbuggy.so CMakeFiles/buggy.dir/main.cpp.o CMakeFiles/buggy.dir/StateManager.cpp.o CMakeFiles/buggy.dir/leaderboardmanager.cpp.o /home/bram/src/gpg-cpp-sdk_3.0/android/lib/gnustl/armeabi-v7a/libgpg.a pi/libpi.a gbase/libgbase.a opende/libopende.a gpgoap/libgpgoap.a ip2ensign/libip2ensign.a -lEGL -lGLESv2 -lOpenSLES -landroid -llog -lz -lm -latomic -lm "/home/bram/android-sdk-linux/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" && :
FAILED: : && /home/bram/android-sdk-linux/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/home/bram/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/bram/android-sdk-linux/ndk-bundle/sysroot -fPIC -isystem /home/bram/android-sdk-linux/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -marm -mfpu=neon -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -DANDROID=1 -DPLAY=1 -DUSEES2=1 -DLOGTAG=swaag -DAPPVER=4.40 -DDEBUG -O0 -fno-limit-debug-info -fuse-ld=gold -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot /home/bram/android-sdk-linux/ndk-bundle/platforms/android-16/arch-arm -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libbuggy.so -o /home/bram/apps/Buggy/AndroidStudio/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libbuggy.so CMakeFiles/buggy.dir/main.cpp.o CMakeFiles/buggy.dir/StateManager.cpp.o CMakeFiles/buggy.dir/leaderboardmanager.cpp.o /home/bram/src/gpg-cpp-sdk_3.0/android/lib/gnustl/armeabi-v7a/libgpg.a pi/libpi.a gbase/libgbase.a opende/libopende.a gpgoap/libgpgoap.a ip2ensign/libip2ensign.a -lEGL -lGLESv2 -lOpenSLES -landroid -llog -lz -lm -latomic -lm "/home/bram/android-sdk-linux/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a" && :
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:137: error: undefined reference to 'gpg::AchievementManager::Unlock(std::string const&)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:145: error: undefined reference to 'gpg::AchievementManager::SetStepsAtLeast(std::string const&, unsigned int)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:153: error: undefined reference to 'gpg::LeaderboardManager::SubmitScore(std::string const&, unsigned long long)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:161: error: undefined reference to 'gpg::AchievementManager::ShowAllUI(std::function<void (gpg::UIStatus const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:175: error: undefined reference to 'gpg::LeaderboardManager::ShowAllUI(std::function<void (gpg::UIStatus const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:193: error: undefined reference to 'gpg::LeaderboardManager::FetchScoreSummary(gpg::DataSource, std::string const&, gpg::LeaderboardTimeSpan, gpg::LeaderboardCollection, std::function<void (gpg::LeaderboardManager::FetchScoreSummaryResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:270: error: undefined reference to 'gpg::AchievementManager::FetchAll(std::function<void (gpg::AchievementManager::FetchAllResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:339: error: undefined reference to 'gpg::RealTimeMultiplayerManager::SendUnreliableMessageToOthers(gpg::RealTimeRoom const&, std::vector<unsigned char, std::allocator<unsigned char> >)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:345: error: undefined reference to 'gpg::RealTimeMultiplayerManager::SendReliableMessage(gpg::RealTimeRoom const&, gpg::MultiplayerParticipant const&, std::vector<unsigned char, std::allocator<unsigned char> >, std::function<void (gpg::MultiplayerStatus const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:430: error: undefined reference to 'gpg::PlayerManager::Fetch(std::string const&, std::function<void (gpg::PlayerManager::FetchResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:452: error: undefined reference to 'gpg::PlayerManager::FetchConnected(std::function<void (gpg::PlayerManager::FetchListResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:681: error: undefined reference to 'gpg::RealTimeMultiplayerManager::CreateRealTimeRoom(gpg::RealTimeRoomConfig const&, gpg::IRealTimeEventListener*, std::function<void (gpg::RealTimeMultiplayerManager::RealTimeRoomResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:708: error: undefined reference to 'gpg::RealTimeMultiplayerManager::ShowRoomInboxUI(std::function<void (gpg::RealTimeMultiplayerManager::RoomInboxUIResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:723: error: undefined reference to 'gpg::RealTimeMultiplayerManager::ShowPlayerSelectUI(unsigned int, unsigned int, bool, std::function<void (gpg::TurnBasedMultiplayerManager::PlayerSelectUIResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:730: error: undefined reference to 'gpg::RealTimeMultiplayerManager::LeaveRoom(gpg::RealTimeRoom const&, std::function<void (gpg::ResponseStatus const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:790: error: undefined reference to 'gpg::GameServices::Builder::SetOnAuthActionStarted(std::function<void (gpg::AuthOperation)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:791: error: undefined reference to 'gpg::GameServices::Builder::SetOnAuthActionFinished(std::function<void (gpg::AuthOperation, gpg::AuthStatus)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:792: error: undefined reference to 'gpg::GameServices::Builder::SetOnMultiplayerInvitationEvent(std::function<void (gpg::MultiplayerEvent, std::string, gpg::MultiplayerInvitation)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:619: error: undefined reference to 'gpg::RealTimeMultiplayerManager::ShowWaitingRoomUI(gpg::RealTimeRoom const&, unsigned int, std::function<void (gpg::RealTimeMultiplayerManager::WaitingRoomUIResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:594: error: undefined reference to 'gpg::RealTimeMultiplayerManager::AcceptInvitation(gpg::MultiplayerInvitation const&, gpg::IRealTimeEventListener*, std::function<void (gpg::RealTimeMultiplayerManager::RealTimeRoomResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:538: error: undefined reference to 'gpg::RealTimeMultiplayerManager::ShowWaitingRoomUI(gpg::RealTimeRoom const&, unsigned int, std::function<void (gpg::RealTimeMultiplayerManager::WaitingRoomUIResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:648: error: undefined reference to 'gpg::RealTimeMultiplayerManager::CreateRealTimeRoom(gpg::RealTimeRoomConfig const&, gpg::IRealTimeEventListener*, std::function<void (gpg::RealTimeMultiplayerManager::RealTimeRoomResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:779: error: undefined reference to 'gpg::PlayerManager::FetchSelf(std::function<void (gpg::PlayerManager::FetchSelfResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:561: error: undefined reference to 'gpg::RealTimeMultiplayerManager::ShowWaitingRoomUI(gpg::RealTimeRoom const&, unsigned int, std::function<void (gpg::RealTimeMultiplayerManager::WaitingRoomUIResponse const&)>)'
/home/bram/apps/Buggy/Android/jni/StateManager.cpp:567: error: undefined reference to 'gpg::RealTimeMultiplayerManager::LeaveRoom(gpg::RealTimeRoom const&, std::function<void (gpg::ResponseStatus const&)>)'
/home/bram/src/gpg-cpp-sdk_3.0/android/lib/gnustl/armeabi-v7a/libgpg.a:third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:function gpg::AndroidGameServicesImpl::AchievementFetchAllOperation::AchievementFetchAllOperation(std::__ndk1::shared_ptr<gpg::AndroidGameServicesImpl>, gpg::InternalCallback<gpg::AchievementManager::FetchAllResponse const&>, gpg::DataSource): error: undefined reference to 'std::__ndk1::__shared_weak_count::__add_shared()'
/home/bram/src/gpg-cpp-sdk_3.0/android/lib/gnustl/armeabi-v7a/libgpg.a:third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:function gpg::AndroidGameServicesImpl::AndroidFetcherOperation<gpg::AchievementManager::FetchAllResponse>::AndroidFetcherOperation(std::__ndk1::shared_ptr<gpg::AndroidGameServicesImpl>, gpg::InternalCallback<gpg::AchievementManager::FetchAllResponse const&>): error: undefined reference to 'std::__ndk1::__shared_weak_count::__add_shared()'
...
This is in my CMakeLists.txt and used to work:
add_library( gpg
STATIC
IMPORTED
)
set_target_properties( gpg
PROPERTIES IMPORTED_LOCATION
$ENV{HOME}/src/gpg-cpp-sdk_3.0/android/lib/gnustl/${ANDROID_ABI}/libgpg.a
)
It seems that v3.0 is not a drop-in replacement for the v2.3 library.
Is there anything I should do differently with the new version?

I also had problem problem replacing older SDK with v3.0 and decided to stick with v2.3 because of first requirement for v3.0:
Requires Android NDK r14 or higher.
check if you meet all of the requirements listed in v3.0 release notes
I wasted a lot of time before i checked this myself.

Related

com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

After updating Android studio 3.2.1. i am facing above issue
i had go through com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed after updating android studio but no useful.
Previously i have faced Build errors after Android Studio 3.2.1 upgrade issue after adding this lines project level gridle iam getting above issue
buildscript {
repositories {
google() // <--here
}
}
allprojects {
repositories {
google() // <-- here
}
}
This is the Error log :
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: warn: removing resource com.viotalk:string/account_settings_confirm_password without required default value.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3510: error: style attribute 'attr/attr/color_text_primary (aka com.viotalk:attr/attr/color_text_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3511: error: style attribute 'attr/attr/color_text_secondary (aka com.viotalk:attr/attr/color_text_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3513: error: style attribute 'attr/attr/color_background_primary (aka com.viotalk:attr/attr/color_background_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3514: error: style attribute 'attr/attr/color_background_secondary (aka com.viotalk:attr/attr/color_background_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3516: error: style attribute 'attr/attr/infocard_border (aka com.viotalk:attr/attr/infocard_border)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3517: error: style attribute 'attr/attr/divider (aka com.viotalk:attr/attr/divider)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3519: error: style attribute 'attr/attr/ic_send_cancel_offline (aka com.viotalk:attr/attr/ic_send_cancel_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3520: error: style attribute 'attr/attr/ic_send_location_offline (aka com.viotalk:attr/attr/ic_send_location_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3521: error: style attribute 'attr/attr/ic_send_photo_offline (aka com.viotalk:attr/attr/ic_send_photo_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3522: error: style attribute 'attr/attr/ic_send_picture_offline (aka com.viotalk:attr/attr/ic_send_picture_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3523: error: style attribute 'attr/attr/ic_send_text_offline (aka com.viotalk:attr/attr/ic_send_text_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3524: error: style attribute 'attr/attr/ic_send_voice_offline (aka com.viotalk:attr/attr/ic_send_voice_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3526: error: style attribute 'attr/attr/ic_attach_camera (aka com.viotalk:attr/attr/ic_attach_camera)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3527: error: style attribute 'attr/attr/ic_attach_document (aka com.viotalk:attr/attr/ic_attach_document)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3528: error: style attribute 'attr/attr/ic_attach_location (aka com.viotalk:attr/attr/ic_attach_location)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3529: error: style attribute 'attr/attr/ic_attach_photo (aka com.viotalk:attr/attr/ic_attach_photo)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3530: error: style attribute 'attr/attr/ic_attach_record (aka com.viotalk:attr/attr/ic_attach_record)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3532: error: style attribute 'attr/attr/icon_add_group (aka com.viotalk:attr/attr/icon_add_group)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3533: error: style attribute 'attr/attr/icon_add_person (aka com.viotalk:attr/attr/icon_add_person)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3534: error: style attribute 'attr/attr/icon_cancel (aka com.viotalk:attr/attr/icon_cancel)' not found.
Command: /Users/user/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/bde3fad980e487b411c5a0ae6f8ff6d1/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/user/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--proguard-main-dex\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
--custom-package\
com.viotalk\
-0\
apk\
--output-text-symbols\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: warn: removing resource com.viotalk:string/account_settings_confirm_password without required default value.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_text_primary (aka com.viotalk:attr/attr/color_text_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_text_secondary (aka com.viotalk:attr/attr/color_text_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_background_primary (aka com.viotalk:attr/attr/color_background_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_background_secondary (aka com.viotalk:attr/attr/color_background_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/infocard_border (aka com.viotalk:attr/attr/infocard_border)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/divider (aka com.viotalk:attr/attr/divider)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_cancel_offline (aka com.viotalk:attr/attr/ic_send_cancel_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_location_offline (aka com.viotalk:attr/attr/ic_send_location_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_photo_offline (aka com.viotalk:attr/attr/ic_send_photo_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_picture_offline (aka com.viotalk:attr/attr/ic_send_picture_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_text_offline (aka com.viotalk:attr/attr/ic_send_text_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_voice_offline (aka com.viotalk:attr/attr/ic_send_voice_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_camera (aka com.viotalk:attr/attr/ic_attach_camera)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_document (aka com.viotalk:attr/attr/ic_attach_document)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_location (aka com.viotalk:attr/attr/ic_attach_location)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_photo (aka com.viotalk:attr/attr/ic_attach_photo)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_record (aka com.viotalk:attr/attr/ic_attach_record)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/icon_add_group (aka com.viotalk:attr/attr/icon_add_group)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/icon_add_person (aka com.viotalk:attr/attr/icon_add_person)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/icon_cancel (aka com.viotalk:attr/attr/icon_cancel)' not found.
Command: /Users/user/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/bde3fad980e487b411c5a0ae6f8ff6d1/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/user/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--proguard-main-dex\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
--custom-package\
com.viotalk\
-0\
apk\
--output-text-symbols\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteException(Aapt2ErrorUtils.kt:97)
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteLinkException(Aapt2ErrorUtils.kt:73)
at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:527)
at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.doFullTaskAction(LinkApplicationAndroidResourcesTask.java:275)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
at sun.reflect.GeneratedMethodAccessor616.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:597)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: warn: removing resource com.viotalk:string/account_settings_confirm_password without required default value.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3510: error: style attribute 'attr/attr/color_text_primary (aka com.viotalk:attr/attr/color_text_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3511: error: style attribute 'attr/attr/color_text_secondary (aka com.viotalk:attr/attr/color_text_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3513: error: style attribute 'attr/attr/color_background_primary (aka com.viotalk:attr/attr/color_background_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3514: error: style attribute 'attr/attr/color_background_secondary (aka com.viotalk:attr/attr/color_background_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3516: error: style attribute 'attr/attr/infocard_border (aka com.viotalk:attr/attr/infocard_border)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3517: error: style attribute 'attr/attr/divider (aka com.viotalk:attr/attr/divider)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3519: error: style attribute 'attr/attr/ic_send_cancel_offline (aka com.viotalk:attr/attr/ic_send_cancel_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3520: error: style attribute 'attr/attr/ic_send_location_offline (aka com.viotalk:attr/attr/ic_send_location_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3521: error: style attribute 'attr/attr/ic_send_photo_offline (aka com.viotalk:attr/attr/ic_send_photo_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3522: error: style attribute 'attr/attr/ic_send_picture_offline (aka com.viotalk:attr/attr/ic_send_picture_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3523: error: style attribute 'attr/attr/ic_send_text_offline (aka com.viotalk:attr/attr/ic_send_text_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3524: error: style attribute 'attr/attr/ic_send_voice_offline (aka com.viotalk:attr/attr/ic_send_voice_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3526: error: style attribute 'attr/attr/ic_attach_camera (aka com.viotalk:attr/attr/ic_attach_camera)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3527: error: style attribute 'attr/attr/ic_attach_document (aka com.viotalk:attr/attr/ic_attach_document)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3528: error: style attribute 'attr/attr/ic_attach_location (aka com.viotalk:attr/attr/ic_attach_location)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3529: error: style attribute 'attr/attr/ic_attach_photo (aka com.viotalk:attr/attr/ic_attach_photo)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3530: error: style attribute 'attr/attr/ic_attach_record (aka com.viotalk:attr/attr/ic_attach_record)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3532: error: style attribute 'attr/attr/icon_add_group (aka com.viotalk:attr/attr/icon_add_group)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3533: error: style attribute 'attr/attr/icon_add_person (aka com.viotalk:attr/attr/icon_add_person)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3534: error: style attribute 'attr/attr/icon_cancel (aka com.viotalk:attr/attr/icon_cancel)' not found.
Command: /Users/user/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/bde3fad980e487b411c5a0ae6f8ff6d1/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/user/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--proguard-main-dex\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
--custom-package\
com.viotalk\
-0\
apk\
--output-text-symbols\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.doLink(Aapt2DaemonImpl.kt:177)
at com.android.builder.internal.aapt.v2.Aapt2Daemon.link(Aapt2Daemon.kt:103)
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager$LeasedAaptDaemon.link(Aapt2DaemonManager.kt:176)
at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:823)
at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:525)
... 49 more
Please help me ?

api-ms-win-crt-runtime-l1-1-0.dll._get_narrow_winmain_command_line

I'm experiencing an issue with PlayOnLinux and Wine. I currently run a Linux Mint 18 distribution and I am trying to run the Battle.net application (you know, an HS game is really refreshing when you have to code for long sessions). I finished the installation sucessfully, but at the moment I can't start the application: the first window of the program appears, freezes and then crashes, showing this error:
Unhandled exception: unimplemented function api-ms-win-crt-runtime-l1-
1-0.d._get_narrow_winmain_command_line called in 32-bit code
(0x7b43fbe2).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:7b43fbe2 ESP:0033fd64 EBP:0033fdd8 EFLAGS:00200202( - -- I - - - )
EAX:7b42ab59 EBX:7b63f8c8 ECX:00000008 EDX:0033fd84
ESI:00000002 EDI:00000000
Stack dump:
0x0033fd64: 0033fe00 00000008 7e519b14 80000100
0x0033fd74: 00000001 00000000 7b43fbe2 00000002
0x0033fd84: 7e3ffe77 7e3ffeb2 7e48d931 00dde930
0x0033fd94: 1ef2f623 0132e6c0 7e49c094 0033fdbc
0x0033fda4: f74d1a8d 7e519b14 7e4c98de 0033fde0
0x0033fdb4: 00000000 00000044 00add244 00dde930
Backtrace:
=>0 0x7b43fbe2 in kernel32 (+0x1fbe2) (0x0033fdd8)
1 0x7e3ffe58 in api-ms-win-crt-runtime-l1-1-0 (+0xfe57) (0x0033fe10)
2 0x7e3ff981 in api-ms-win-crt-runtime-l1-1-0 (+0xf980) (0x0033fe60)
3 0x00add44d in battle.net (+0x6dd44c) (0x0033fe60)
4 0x7b46697c call_process_entry+0xb() in kernel32 (0x0033fe78)
5 0x7b467bab in kernel32 (+0x47baa) (0x0033feb8)
6 0x7bc84300 call_thread_func_wrapper+0xb() in ntdll (0x0033fed8)
7 0x7bc8746d call_thread_func+0x7c() in ntdll (0x0033ffa8)
8 0x7bc842de RtlRaiseException+0x21() in ntdll (0x0033ffc8)
9 0x7bc5572e call_dll_entry_point+0x35d() in ntdll (0x0033ffe8)
10 0xf75aacbd wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
11 0xf75aad7b wine_switch_to_stack+0x2a() in libwine.so.1 (0xff9dd7a8)
12 0x7bc5bb71 LdrInitializeThunk+0x270() in ntdll (0xff9dd7f8)
13 0x7b46e2b8 __wine_kernel_init+0x987() in kernel32 (0xff9de718)
14 0x7bc5caa3 __wine_process_init+0x182() in ntdll (0xff9de7a8)
15 0xf75a90a2 wine_init+0x2a1() in libwine.so.1 (0xff9de808)
16 0x7c000beb main+0x7a() in <wine-loader> (0xff9dec48)
17 0xf73c4637 __libc_start_main+0xf6() in libc.so.6 (0x00000000)
0x7b43fbe2: movl 0xfffffff4(%ebp),%ecx
Modules:
Module Address Debug info Name (214 modules)
PE 340000- 3d5000 Deferred qt5multimedia
PE 400000- 12b1000 Export battle.net
PE 13d0000- 18b4000 Deferred qt5gui
PE 18c0000- 1b6c000 Deferred qt5quick
PE 1b70000- 1ba6000 Deferred qt5winextras
PE 1bb0000- 20e2000 Deferred vivoxsdk
PE 20f0000- 217a000 Deferred ortp
PE 2180000- 5786000 Deferred libcef
PE 10000000-1006d000 Deferred msvcp140
PE 61000000-61029000 Deferred qt5xml
PE 64000000-640ba000 Deferred qt5network
PE 65000000-6546c000 Deferred qt5widgets
PE 66000000-6627b000 Deferred qt5qml
PE 67000000-6748e000 Deferred qt5core
ELF 7a800000-7a932000 Deferred opengl32<elf>
\-PE 7a820000-7a932000 \ opengl32
ELF 7b400000-7b7ea000 Dwarf kernel32<elf>
\-PE 7b420000-7b7ea000 \ kernel32
ELF 7bc00000-7bcf7000 Dwarf ntdll<elf>
\-PE 7bc10000-7bcf7000 \ ntdll
ELF 7c000000-7c003000 Dwarf <wine-loader>
ELF 7c37b000-7c400000 Deferred libgcrypt.so.11
ELF 7c443000-7c50c000 Deferred libgnutls.so.26
ELF 7c50c000-7c544000 Deferred uxtheme<elf>
\-PE 7c510000-7c544000 \ uxtheme
ELF 7c544000-7c54b000 Deferred libxfixes.so.3
ELF 7c54b000-7c556000 Deferred libxcursor.so.1
ELF 7c656000-7c669000 Deferred libxi.so.6
ELF 7c669000-7c66d000 Deferred libxcomposite.so.1
ELF 7c66d000-7c67a000 Deferred libxrandr.so.2
ELF 7c67a000-7c686000 Deferred libxrender.so.1
ELF 7c686000-7c68d000 Deferred libxxf86vm.so.1
ELF 7c68d000-7c691000 Deferred libxinerama.so.1
ELF 7c691000-7c698000 Deferred libxdmcp.so.6
ELF 7c698000-7c6be000 Deferred libxcb.so.1
ELF 7c6be000-7c809000 Deferred libx11.so.6
ELF 7c809000-7c81e000 Deferred libxext.so.6
ELF 7c81e000-7c8b3000 Deferred winex11<elf>
\-PE 7c830000-7c8b3000 \ winex11
ELF 7c8b3000-7c8c9000 Deferred libgpg-error.so.0
ELF 7c8c9000-7c93e000 Deferred libpcre.so.3
ELF 7c93e000-7c95c000 Deferred libgcc_s.so.1
ELF 7c95c000-7ca0b000 Deferred libgcrypt.so.20
ELF 7ca6b000-7ca6f000 Deferred libxau.so.6
ELF 7ca6f000-7ca95000 Deferred liblzma.so.5
ELF 7ca95000-7cabb000 Deferred libselinux.so.1
ELF 7cabb000-7cb49000 Deferred libsystemd.so.0
ELF 7cb49000-7cb4e000 Deferred libkeyutils.so.1
ELF 7cb4e000-7cba8000 Deferred libdbus-1.so.3
ELF 7cba8000-7cbb5000 Deferred libkrb5support.so.0
ELF 7cbb5000-7cbe6000 Deferred libk5crypto.so.3
ELF 7cbe6000-7ccbd000 Deferred libkrb5.so.3
ELF 7ccbd000-7ccd1000 Deferred libavahi-client.so.3
ELF 7ccd1000-7ccdf000 Deferred libavahi-common.so.3
ELF 7ccdf000-7cd31000 Deferred libgssapi_krb5.so.2
ELF 7cd31000-7cdb8000 Deferred libcups.so.2
ELF 7cdc6000-7cdd8000 Deferred libtasn1.so.3
PE 7cdda000-7cded000 Deferred api-ms-win-core-localization-
l1-
PE 7cde0000-7cded000 Deferred api-ms-win-core-localization-
l1-C:\windows\system32\api-ms-win-core-localization-l1-2-1.dll
ELF 7cded000-7ce00000 Deferred api-ms-win-core-fibers-l1-1-
1<el
PE 7cdf0000-7ce00000 Deferred api-ms-win-core-fibers-l1-1-1
ELF 7ce00000-7ce13000 Deferred api-ms-win-core-synch-l1-2-
0<elf
PE 7ce10000-7ce13000 Deferred api-ms-win-core-synch-l1-2-0
ELF 7cf30000-7cf5a000 Deferred libexpat.so.1
ELF 7cf5a000-7cfa3000 Deferred libfontconfig.so.1
ELF 7cfa3000-7cfce000 Deferred libpng12.so.0
ELF 7cfce000-7d07e000 Deferred libfreetype.so.6
ELF 7d0a0000-7d117000 Deferred ddraw<elf>
\-PE 7d0b0000-7d117000 \ ddraw
ELF 7d117000-7d24d000 Deferred wined3d<elf>
\-PE 7d130000-7d24d000 \ wined3d
ELF 7d24d000-7d28b000 Deferred d3d9<elf>
\-PE 7d250000-7d28b000 \ d3d9
ELF 7d28b000-7d29e000 Deferred api-ms-win-crt-conio-l1-1-
0<elf>
\-PE 7d290000-7d29e000 \ api-ms-win-crt-conio-l1-1-
0
ELF 7d29e000-7d2c2000 Deferred imm32<elf>
\-PE 7d2a0000-7d2c2000 \ imm32
ELF 7d2c2000-7d2f6000 Deferred secur32<elf>
\-PE 7d2d0000-7d2f6000 \ secur32
ELF 7d2f6000-7d355000 Deferred oleacc<elf>
\-PE 7d300000-7d355000 \ oleacc
ELF 7d355000-7d369000 Deferred dhcpcsvc<elf>
\-PE 7d360000-7d369000 \ dhcpcsvc
ELF 7d369000-7d40d000 Deferred urlmon<elf>
\-PE 7d370000-7d40d000 \ urlmon
ELF 7d40d000-7d425000 Deferred userenv<elf>
\-PE 7d410000-7d425000 \ userenv
ELF 7d425000-7d531000 Deferred comctl32<elf>
\-PE 7d430000-7d531000 \ comctl32
ELF 7d531000-7d621000 Deferred comdlg32<elf>
\-PE 7d540000-7d621000 \ comdlg32
ELF 7d621000-7d663000 Deferred winspool<elf>
\-PE 7d630000-7d663000 \ winspool
ELF 7d663000-7d6a8000 Deferred usp10<elf>
\-PE 7d670000-7d6a8000 \ usp10
ELF 7d6a8000-7d6da000 Deferred libcrypt.so.1
ELF 7d6da000-7d7bb000 Deferred libsqlite3.so.0
ELF 7d7bb000-7d80b000 Deferred libhx509.so.5
ELF 7d80b000-7d81c000 Deferred libheimbase.so.1
ELF 7d81c000-7d846000 Deferred libwind.so.0
ELF 7d846000-7d8d2000 Deferred libgmp.so.10
ELF 7d8d2000-7d907000 Deferred libhogweed.so.4
ELF 7d907000-7d943000 Deferred libnettle.so.6
ELF 7d943000-7d958000 Deferred libtasn1.so.6
ELF 7d958000-7d98c000 Deferred libidn.so.11
ELF 7d98c000-7d9ed000 Deferred libp11-kit.so.0
ELF 7d9ed000-7da05000 Deferred libroken.so.18
ELF 7da05000-7da3e000 Deferred libhcrypto.so.4
ELF 7da3e000-7daef000 Deferred libasn1.so.8
ELF 7daef000-7db87000 Deferred libkrb5.so.26
ELF 7db87000-7dcdf000 Deferred libgnutls.so.30
ELF 7dcdf000-7dd26000 Deferred libgssapi.so.3
ELF 7dd26000-7dd44000 Deferred libsasl2.so.2
ELF 7dd44000-7dd54000 Deferred liblber-2.4.so.2
ELF 7dd54000-7ddaf000 Deferred libldap_r-2.4.so.2
ELF 7ddbe000-7ddd1000 Deferred sensapi<elf>
\-PE 7ddc0000-7ddd1000 \ sensapi
ELF 7ddd1000-7de35000 Deferred wldap32<elf>
\-PE 7dde0000-7de35000 \ wldap32
ELF 7de35000-7de48000 Deferred psapi<elf>
\-PE 7de40000-7de48000 \ psapi
ELF 7de48000-7df8d000 Deferred oleaut32<elf>
\-PE 7de60000-7df8d000 \ oleaut32
ELF 7df8d000-7dfaa000 Deferred jsproxy<elf>
\-PE 7df90000-7dfaa000 \ jsproxy
ELF 7dfaa000-7dfe9000 Deferred winhttp<elf>
\-PE 7dfb0000-7dfe9000 \ winhttp
ELF 7dfe9000-7e002000 Deferred libz.so.1
ELF 7e002000-7e07f000 Deferred wininet<elf>
\-PE 7e010000-7e07f000 \ wininet
ELF 7e07f000-7e0a7000 Deferred iphlpapi<elf>
\-PE 7e090000-7e0a7000 \ iphlpapi
ELF 7e0a7000-7e0d6000 Deferred netapi32<elf>
\-PE 7e0b0000-7e0d6000 \ netapi32
ELF 7e0d6000-7e0ef000 Deferred libresolv.so.2
ELF 7e0f0000-7e0fa000 Deferred libheimntlm.so.0
ELF 7e0fa000-7e111000 Deferred wtsapi32<elf>
\-PE 7e100000-7e111000 \ wtsapi32
ELF 7e111000-7e130000 Deferred dnsapi<elf>
\-PE 7e120000-7e130000 \ dnsapi
ELF 7e130000-7e15a000 Deferred msacm32<elf>
\-PE 7e140000-7e15a000 \ msacm32
ELF 7e15a000-7e214000 Deferred winmm<elf>
\-PE 7e160000-7e214000 \ winmm
ELF 7e214000-7e22f000 Deferred dinput8<elf>
\-PE 7e220000-7e22f000 \ dinput8
ELF 7e22f000-7e243000 Deferred mswsock<elf>
\-PE 7e230000-7e243000 \ mswsock
ELF 7e243000-7e314000 Deferred crypt32<elf>
\-PE 7e250000-7e314000 \ crypt32
ELF 7e314000-7e349000 Deferred wintrust<elf>
\-PE 7e320000-7e349000 \ wintrust
ELF 7e349000-7e35c000 Deferred api-ms-win-crt-utility-l1-1-
0<el
PE 7e350000-7e35c000 Deferred api-ms-win-crt-utility-l1-1-0
PE 7e35c000-7e36f000 Deferred api-ms-win-crt-environment-l1
-1-
PE 7e360000-7e36f000 Deferred api-ms-win-crt-environment-l1-
1-C:\windows\system32\api-ms-win-crt-environment-l1-1-0.dll
PE 7e36f000-7e382000 Deferred api-ms-win-crt-filesystem-l1-
1-0
PE 7e370000-7e382000 Deferred api-ms-win-crt-filesystem-l1-
1-0C:\windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll
ELF 7e382000-7e395000 Deferred api-ms-win-crt-time-l1-1-
0<elf>
\-PE 7e390000-7e395000 \ api-ms-win-crt-time-l1-1-0
ELF 7e395000-7e3aa000 Deferred api-ms-win-crt-convert-l1-1-
0<el
PE 7e3a0000-7e3aa000 Deferred api-ms-win-crt-convert-l1-1-0
ELF 7e3aa000-7e3c0000 Deferred api-ms-win-crt-multibyte-l1-1
-0<
PE 7e3b0000-7e3c0000 Deferred api-ms-win-crt-multibyte-l1-1-
0
ELF 7e3c0000-7e3d9000 Deferred api-ms-win-crt-math-l1-1-
0<elf>
\-PE 7e3d0000-7e3d9000 \ api-ms-win-crt-math-l1-1-0
ELF 7e3d9000-7e3ee000 Deferred api-ms-win-crt-stdio-l1-1-
0<elf>
\-PE 7e3e0000-7e3ee000 \ api-ms-win-crt-stdio-l1-1-
0
ELF 7e3ee000-7e403000 Dwarf api-ms-win-crt-runtime-l1-1-
0<el
PE 7e3f0000-7e403000 DIA api-ms-win-crt-runtime-l1-1-0
ELF 7e403000-7e416000 Deferred api-ms-win-crt-locale-l1-1-
0<elf
PE 7e410000-7e416000 Deferred api-ms-win-crt-locale-l1-1-0
ELF 7e416000-7e429000 Deferred api-ms-win-crt-heap-l1-1-
0<elf>
\-PE 7e420000-7e429000 \ api-ms-win-crt-heap-l1-1-0
ELF 7e429000-7e43e000 Deferred api-ms-win-crt-string-l1-1-
0<elf
PE 7e430000-7e43e000 Deferred api-ms-win-crt-string-l1-1-0
ELF 7e43e000-7e52b000 Deferred ucrtbase<elf>
\-PE 7e460000-7e52b000 \ ucrtbase
ELF 7e52b000-7e540000 Deferred vcruntime140<elf>
\-PE 7e530000-7e540000 \ vcruntime140
ELF 7e540000-7e567000 Deferred mpr<elf>
\-PE 7e550000-7e567000 \ mpr
ELF 7e567000-7e5a2000 Deferred ws2_32<elf>
\-PE 7e570000-7e5a2000 \ ws2_32
ELF 7e5a2000-7e628000 Deferred rpcrt4<elf>
\-PE 7e5b0000-7e628000 \ rpcrt4
ELF 7e628000-7e76f000 Deferred ole32<elf>
\-PE 7e640000-7e76f000 \ ole32
ELF 7e76f000-7e7ea000 Deferred shlwapi<elf>
\-PE 7e780000-7e7ea000 \ shlwapi
ELF 7e7ea000-7ea38000 Deferred shell32<elf>
\-PE 7e800000-7ea38000 \ shell32
ELF 7ea38000-7eab4000 Deferred advapi32<elf>
\-PE 7ea50000-7eab4000 \ advapi32
ELF 7eab4000-7ebdc000 Deferred gdi32<elf>
\-PE 7eac0000-7ebdc000 \ gdi32
ELF 7ebdc000-7ed3b000 Deferred user32<elf>
\-PE 7ebf0000-7ed3b000 \ user32
ELF 7ed3b000-7ed4e000 Deferred libnss_files.so.2
ELF 7ed4e000-7ed5b000 Deferred libnss_nis.so.2
ELF 7ed5b000-7ed76000 Deferred libnsl.so.1
ELF 7ed76000-7ed80000 Deferred libnss_compat.so.2
ELF 7ef80000-7efd5000 Deferred libm.so.6
ELF 7efd5000-7efde000 Deferred librt.so.1
ELF 7efde000-7efe7000 Deferred libffi.so.6
ELF 7efe7000-7f000000 Deferred version<elf>
\-PE 7eff0000-7f000000 \ version
ELF f73a1000-f73a6000 Deferred libcom_err.so.2
ELF f73a7000-f73ac000 Deferred libdl.so.2
ELF f73ac000-f7562000 Dwarf libc.so.6
ELF f7562000-f757f000 Deferred libpthread.so.0
ELF f75a2000-f7759000 Dwarf libwine.so.1
ELF f775b000-f7780000 Deferred ld-linux.so.2
ELF f7782000-f7783000 Deferred [vdso].so
Threads:
process tid prio (all id:s are in hex)
0000000e services.exe
0000004a 0
0000001c 0
00000014 0
00000010 0
0000000f 0
00000012 winedevice.exe
0000001b 0
00000018 0
00000017 0
00000013 0
00000019 plugplay.exe
0000001f 0
0000001e 0
0000001a 0
00000027 explorer.exe
0000002b 0
0000002a 0
00000029 0
00000028 0
00000035 Agent.exe
00000048 0
00000047 0
00000046 0
00000045 0
00000044 0
00000043 0
00000042 0
00000041 0
00000040 0
0000003f 0
0000003d 0
00000039 0
00000036 0
00000037 wineconsole.exe
00000038 0
00000050 (D) C:\Program Files\Blizzard
App\Battle.net.8657\Battle.net.exe
00000051 0 <==
System information:
Wine build: wine-1.9.15
Platform: i386
Version: Windows Server 2008 R2
Host system: Linux
Host version: 4.4.0-53-generic
Why doesn't it works?
Although I tried this using PlayOnMac on a Mac running Sierra OS, I am certain that it should work for Linux. The problem is that Wine is running an unsupported version of Windows by default. In my case this turned out to be Windows XP. You need to change the OS to a higher version. In PlayOnMac 4.2.12:
Click the Configure gear icon
Select your desired virtual drive
Select the Wine tab
Click Configure Wine
Select the Application tab
Change the Windows version (I selected Windows 10)
Click the Apply button
Click the Ok button.
Back in the Wine tab click "Windows Reboot".
Try to re-install MT4.

Nix static library linking

I am trying to build nix on FreeBSD. I have changed a few things to make it compile. Here are the patched sources: https://github.com/ysangkok/nix
I configure using ./bootstrap.sh and bash configure CXX=clang++ CC=clang.
The nix executable itself links fine, but I can't link nix-channel:
[janus#xn--kn-1ia ~/nix] gmake V=1
local.mk:13: warning: overriding recipe for target '/usr/local/include/nix/shared.hh'
local.mk:13: warning: ignoring old recipe for target '/usr/local/include/nix/shared.hh'
local.mk:13: warning: overriding recipe for target '/usr/local/include/nix/common-args.hh'
local.mk:13: warning: ignoring old recipe for target '/usr/local/include/nix/common-args.hh'
clang++ -o src/nix-channel/nix-channel src/nix-channel/nix-channel.o src/libmain/libnixmain.a -L/usr/local/lib -lcrypto src/libutil/libnixutil.a -llzma -lbz2 -pthread -L/usr/local/lib -lcrypto src/boost/format/libnixformat.a src/libstore/libnixstore.a -L/usr/local/lib -lsqlite3 -lbz2 -L/usr/local/lib -lcurl -pthread
/usr/bin/ld: warning: libcrypto.so.7, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.8
/usr/bin/ld: warning: libcrypto.so.7, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.8
src/libstore/libnixstore.a(misc.o): In function `nix::Store::computeFSClosure(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, bool, bool, bool)':
/home/janus/nix/src/libstore/misc.cc:14: undefined reference to `nix::ThreadPool::ThreadPool(unsigned long)'
/home/janus/nix/src/libstore/misc.cc:68: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
/home/janus/nix/src/libstore/misc.cc:70: undefined reference to `nix::ThreadPool::process()'
/home/janus/nix/src/libstore/misc.cc:71: undefined reference to `nix::ThreadPool::~ThreadPool()'
/home/janus/nix/src/libstore/misc.cc:71: undefined reference to `nix::ThreadPool::~ThreadPool()'
src/libstore/libnixstore.a(misc.o): In function `nix::Store::queryMissing(std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, unsigned long long&, unsigned long long&)':
/home/janus/nix/src/libstore/misc.cc:80: undefined reference to `nix::ThreadPool::ThreadPool(unsigned long)'
/home/janus/nix/src/libstore/misc.cc:201: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
/home/janus/nix/src/libstore/misc.cc:203: undefined reference to `nix::ThreadPool::process()'
/home/janus/nix/src/libstore/misc.cc:204: undefined reference to `nix::ThreadPool::~ThreadPool()'
/home/janus/nix/src/libstore/misc.cc:204: undefined reference to `nix::ThreadPool::~ThreadPool()'
src/libstore/libnixstore.a(misc.o): In function `operator()':
/home/janus/nix/src/libstore/misc.cc:168: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
/home/janus/nix/src/libstore/misc.cc:196: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
src/libstore/libnixstore.a(misc.o): In function `nix::Store::queryMissing(std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, unsigned long long&, unsigned long long&)::$_4::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, nix::Derivation const&) const':
/home/janus/nix/src/libstore/misc.cc:109: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
src/libstore/libnixstore.a(misc.o): In function `ref':
/home/janus/nix/src/libstore/misc.cc:132: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
src/libstore/libnixstore.a(misc.o): In function `operator()':
/home/janus/nix/src/libstore/misc.cc:35: undefined reference to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)'
src/libstore/libnixstore.a(misc.o):/home/janus/nix/src/libstore/misc.cc:40: more undefined references to `nix::ThreadPool::enqueue(std::__1::function<void ()()> const&)' follow
src/libstore/libnixstore.a(build.o): In function `nix::DerivationGoal::openLogFile()':
/home/janus/nix/src/libstore/build.cc:2948: undefined reference to `nix::makeCompressionSink(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, nix::Sink&)'
src/libstore/libnixstore.a(builtins.o): In function `nix::builtinFetchurl(nix::BasicDerivation const&)':
/home/janus/nix/src/libstore/builtins.cc:48: undefined reference to `nix::decompress(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [mk/lib.mk:105: src/nix-channel/nix-channel] Error 1
[janus#xn--kn-1ia ~/nix]
ThreadPool is defined in src/libutil/thread-pool.cc. libutil is also linked in the command above. Why is the reference undefined?
Even if I build the patched sources on Linux, I still get the issue.

Example from D book isn't working, odd error

All,
I'm using Xamarin Studio 4.08 and Mono-D to program D with the DMD2 compiler. When I try to compile the following (from The D Programming Language - Alexandrescu, 2010- Page 10):
import std.array;
bool binarySearch(T)(T[] input, T value)
{
while (!input.empty)
{
auto i = input.length / 2;
auto mid = input[i];
if(mid > value) input = input[0 .. i];
else if(mid < value) input = input[i + 1 .. $];
else return true;
}
return false;
}
unittest
{
assert(binarySearch([1, 3, 6, 7, 9, 15], 6));
assert(!binarySearch([1, 3, 6, 7, 9, 15], 5));
}
I get the following error upon compilation:
: Error: std.array could not be resolved - library reference missing?
However, the plot thickens when I comment out assert(binarySearch([1,3,6,7,9,15], 6));, because that produces a very peculiar error:
First, a library is missing, then, it's a 16-bit application. I know there's an errata for this book, but this isn't in it.
UPDATE
Compiled with rdmd test.d --main and got the following errors, using the same code...
OPTLINK (R) for Win32 Release 8.00.13
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 23: No Stack
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __fltused
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_assert_msg
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_throwc
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std4conv21ConvOverflowException6__ctorMFAyaAyakZC
3std4conv21ConvOverflowException
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std4conv21ConvOverflowException7__ClassZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_newclass
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std4conv8__assertFiZv
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std4conv13ConvException7__ClassZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std4conv13ConvException6__ctorMFAyaAyakZC3std4con
v13ConvException
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D12TypeInfo_Aya6__initZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_arrayappendT
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std6format7__arrayZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_arraycopy
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std5array7__arrayZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _memcpy
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_newitemT
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D4core6memory2GC6extendFNaNbPvkkZk
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D4core6memory2GC6qallocFNaNbkkZS4core6memory8BlkInf
o_
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __LDIV#
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D16TypeInfo_Pointer6__vtblZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D15TypeInfo_Struct6__vtblZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __ULDIV#
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std6format15FormatException6__ctorMFAyaAyakC6obje
ct9ThrowableZC3std6format15FormatException
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std6format15FormatException7__ClassZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std3utf6encodeFNaNfKG4awZk
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std5array8__assertFiZv
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __d_arraysetcapacity
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std3utf8__assertFiZv
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std3utf7__arrayZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std3utf12isValidDcharFNaNbNfwZb
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std3utf12UTFException6__ctorMFAyakAyakC6object9Th
rowableZC3std3utf12UTFException
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std3utf12UTFException7__ClassZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined __adDupT
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D14TypeInfo_Array6__vtblZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D10TypeInfo_a6__initZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D14TypeInfo_Const6__vtblZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D9Exception7__ClassZ
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std9exception7bailOutFNaNfAyakxAaZv
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std5ascii7isDigitFNaNbNfwZb
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D6object9Exception6__ctorMFNaNbNfAyaAyakC6object9Th
rowableZC9Exception
C:\Users\Aaron\AppData\Local\Temp\.rdmd\rdmd-test.d-AB3FF68B659C1090C52A7CFC868F
8061\objs\test.obj(test)
Error 42: Symbol Undefined _D3std5array12__ModuleInfoZ
OPTLINK : Warning 134: No Start Address
--- errorlevel 41
What'd I do wrong this time? :P
There is no error in code.
Except, that it doesn't have a main function, so you can not run compiled program. You can ask the compiler to add main function for you. Just use -main switch.
rdmd is a DMD Script Shell.
You get errors because rdmd treats all arguments after file name as switches for your program. Try rdmd --main test.d.

Can I use Java Core libraries in Ceylon M1 Newton?

I've downloaded the Ceylon SDK and try to play a little bit, but after a while I realize of this:
...
SDK
At this time, the only module available is the language module
ceylon.language, included in the distribution.
http://ceylon-lang.org/blog/2011/12/20/ceylon-m1-newton/
Would that explain why am I getting ClassNotFoundException here? Or am I missing something else?
$cat source/time.ceylon
import javax.swing { JFrame }
void run() {
print( "Yeap, it's working ");
value frame = JFrame();
frame.pack();
frame.visible := true;
}
$../../bin/ceylonc default
error: warning: Has multiple constructors: javax.swing.JFrame
error: warning: Has conflicting attribute and method name 'layout': javax.swing.JFrame
error: warning: Has conflicting attribute and method name 'iconImage': javax.swing.JFrame
error: warning: Has multiple constructors: java.awt.Frame
error: warning: Has conflicting attribute and method name 'cursor': java.awt.Frame
error: warning: Has multiple constructors: java.awt.Window
error: warning: Has conflicting attribute and method name 'cursor': java.awt.Window
error: warning: Has conflicting attribute and method name 'minimumSize': java.awt.Window
error: warning: Has conflicting attribute and method name 'visible': java.awt.Window
error: warning: Has conflicting attribute and method name 'locationRelativeTo': java.awt.Window
error: warning: Has conflicting attribute and method name 'size': java.awt.Window
error: warning: Has conflicting attribute and method name 'bounds': java.awt.Window
error: warning: Has conflicting attribute and method name 'iconImage': java.awt.Window
error: warning: Has conflicting attribute and method name 'font': java.awt.Container
14 warnings
$../../bin/ceylon default
Note: Ceylon repository 'http://modules.ceylon-lang.org' not yet available.
Yeap, it's working
Exception in thread "main" java.lang.RuntimeException: Error using Ceylon Runtime.
at ceylon.modules.Main.main(Main.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.modules.Module.run(Module.java:243)
at org.jboss.modules.Main.main(Main.java:313)
Caused by: java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
at java.security.AccessController.doPrivileged(Native Method)
at ceylon.modules.api.runtime.SecurityActions.invokeRun(SecurityActions.java:59)
at ceylon.modules.api.runtime.AbstractRuntime.invokeRun(AbstractRuntime.java:69)
at ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.java:109)
at ceylon.modules.Main.execute(Main.java:76)
at ceylon.modules.Main.main(Main.java:55)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at ceylon.modules.api.runtime.SecurityActions$2.run(SecurityActions.java:66)
... 12 more
Caused by: java.lang.NoClassDefFoundError: javax/swing/JFrame
at run.run(time.ceylon:4)
at run.main(time.ceylon)
... 17 more
Caused by: java.lang.ClassNotFoundException: javax.swing.JFrame from [Module "default:**NO_VERSION**" from Ceylon ModuleLoader: RootRepository: FileContentStore: /Users/oscarryz/.ceylon/repo]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)
... 19 more
Java interop is not ready yet, so M1 does not include it. It's planned for M2:
http://ceylon-lang.org/documentation/roadmap/#milestone_2

Resources