{"action":"created","issue":{"url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32/issues/1","repository_url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32","labels_url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32/issues/1/comments","events_url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32/issues/1/events","html_url":"https://github.com/FXCMAPI/ForexConnectAPI-win32/issues/1","id":198723251,"number":1,"title":"This Library is not compatible with g++ under MinGW","user":{"login":"yzprofile","id":1056285,"avatar_url":"https://avatars.githubusercontent.com/u/1056285?v=3","gravatar_id":"","url":"https://api.github.com/users/yzprofile","html_url":"https://github.com/yzprofile","followers_url":"https://api.github.com/users/yzprofile/followers","following_url":"https://api.github.com/users/yzprofile/following{/other_user}","gists_url":"https://api.github.com/users/yzprofile/gists{/gist_id}","starred_url":"https://api.github.com/users/yzprofile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yzprofile/subscriptions","organizations_url":"https://api.github.com/users/yzprofile/orgs","repos_url":"https://api.github.com/users/yzprofile/repos","events_url":"https://api.github.com/users/yzprofile/events{/privacy}","received_events_url":"https://api.github.com/users/yzprofile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-04T14:43:49Z","updated_at":"2017-01-04T19:46:06Z","closed_at":null,"body":"When I use g++ to compile a demo\r\n\r\n```cpp\r\n#include \"stdio.h\"\r\n#include \"ForexConnect.h\"\r\n\r\nint main(int argc, char *argv[]) {\r\n    IO2GSession *session = CO2GTransport::createSession();\r\n    printf(\"helloworld, %d\\n\", session);\r\n    getchar();\r\n    return 0;\r\n}\r\n```\r\n\r\n```bash\r\ng++ -v main.cpp  -I include/ -L lib/ -lForexConnect\r\n```\r\n\r\nGot this:\r\n\r\n```bash\r\nUsing built-in specs.\r\nCOLLECT_GCC=C:\\MinGW\\bin\\g++.exe\r\nCOLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper.exe\r\nTarget: mingw32\r\nConfigured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls\r\nThread model: win32\r\ngcc version 5.3.0 (GCC)\r\nCOLLECT_GCC_OPTIONS='-v' '-I' 'include/' '-Llib/' '-shared-libgcc' '-mtune=generic' '-march=i586'\r\n c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/cc1plus.exe -quiet -v -I include/ -iprefix c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/ main.cpp -quiet -dumpbase main.cpp -mtune=generic -march=i586 -auxbase main -version -o C:\\Users\\YZPROF~1\\AppData\\Local\\Temp\\ccqqbQa3.s\r\nGNU C++ (GCC) version 5.3.0 (mingw32)\r\n        compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.2\r\nwarning: GMP header version 6.1.0 differs from library version 5.1.2.\r\nwarning: MPFR header version 3.1.3 differs from library version 3.1.2.\r\nGGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../lib/gcc/mingw32/5.3.0/include/c++\"\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../lib/gcc/mingw32/5.3.0/include/c++/mingw32\"\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../lib/gcc/mingw32/5.3.0/include/c++/backward\"\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../lib/gcc/mingw32/5.3.0/include\"\r\nignoring nonexistent directory \"/mingw/include\"\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../include\"\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../lib/gcc/mingw32/5.3.0/include-fixed\"\r\nignoring duplicate directory \"c:/mingw/lib/gcc/../../lib/gcc/mingw32/5.3.0/../../../../mingw32/include\"\r\nignoring nonexistent directory \"/mingw/include\"\r\n#include \"...\" search starts here:\r\n#include <...> search starts here:\r\n include\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/include/c++\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/include/c++/mingw32\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/include/c++/backward\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/include\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/../../../../include\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/include-fixed\r\n c:\\mingw\\bin\\../lib/gcc/mingw32/5.3.0/../../../../mingw32/include\r\nEnd of search list.\r\nGNU C++ (GCC) version 5.3.0 (mingw32)\r\n        compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version 3.1.3, MPC version 1.0.2\r\nwarning: GMP header version 6.1.0 differs from library version 5.1.2.\r\nwarning: MPFR header version 3.1.3 differs from library version 3.1.2.\r\nGGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072\r\nCompiler executable checksum: 07a62fef5de24b3d4a2f93dde79a7b51\r\nCOLLECT_GCC_OPTIONS='-v' '-I' 'include/' '-Llib/' '-shared-libgcc' '-mtune=generic' '-march=i586'\r\n c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/as.exe -v -I include/ -o C:\\Users\\YZPROF~1\\AppData\\Local\\Temp\\cc7dbESu.o C:\\Users\\YZPROF~1\\AppData\\Local\\Temp\\ccqqbQa3.s\r\nGNU assembler version 2.25.1 (mingw32) using BFD version (GNU Binutils) 2.25.1\r\nCOMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/\r\nLIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/5.3.0/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../\r\nCOLLECT_GCC_OPTIONS='-v' '-I' 'include/' '-Llib/' '-shared-libgcc' '-mtune=generic' '-march=i586'\r\n c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/collect2.exe -plugin c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/liblto_plugin-0.dll -plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\\Users\\YZPROF~1\\AppData\\Local\\Temp\\ccUGqYh4.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -Bdynamic -u ___register_frame_info -u ___deregister_frame_info c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../crt2.o c:/mingw/bin/../lib/gcc/mingw32/5.3.0/crtbegin.o -Llib/ -Lc:/mingw/bin/../lib/gcc/mingw32/5.3.0 -Lc:/mingw/bin/../lib/gcc -Lc:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/lib -Lc:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../.. C:\\Users\\YZPROF~1\\AppData\\Local\\Temp\\cc7dbESu.o -lForexConnect -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt c:/mingw/bin/../lib/gcc/mingw32/5.3.0/crtend.o\r\nC:\\Users\\YZPROF~1\\AppData\\Local\\Temp\\cc7dbESu.o:main.cpp:(.text+0xf): undefined reference to `_imp___ZN13CO2GTransport13createSessionEv'\r\ncollect2.exe: error: ld returned 1 exit status\r\n```\r\n\r\nCan you guys release one library compiled by g++ on windows?\r\n\r\nthanks."},"comment":{"url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32/issues/comments/270467512","html_url":"https://github.com/FXCMAPI/ForexConnectAPI-win32/issues/1#issuecomment-270467512","issue_url":"https://api.github.com/repos/FXCMAPI/ForexConnectAPI-win32/issues/1","id":270467512,"user":{"login":"FXCMAPI","id":13039151,"avatar_url":"https://avatars.githubusercontent.com/u/13039151?v=3","gravatar_id":"","url":"https://api.github.com/users/FXCMAPI","html_url":"https://github.com/FXCMAPI","followers_url":"https://api.github.com/users/FXCMAPI/followers","following_url":"https://api.github.com/users/FXCMAPI/following{/other_user}","gists_url":"https://api.github.com/users/FXCMAPI/gists{/gist_id}","starred_url":"https://api.github.com/users/FXCMAPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FXCMAPI/subscriptions","organizations_url":"https://api.github.com/users/FXCMAPI/orgs","repos_url":"https://api.github.com/users/FXCMAPI/repos","events_url":"https://api.github.com/users/FXCMAPI/events{/privacy}","received_events_url":"https://api.github.com/users/FXCMAPI/received_events","type":"User","site_admin":false},"created_at":"2017-01-04T19:46:06Z","updated_at":"2017-01-04T19:46:06Z","body":"Hello Zhuo\r\n\r\nUnfortunate, this require additional code work which will follow our project management process.\r\nWhich may not be released in the near future.\r\n\r\nBest regards\r\nLei\r\n\r\nFrom: Zhuo Yuan (袁茁) [mailto:notifications@github.com]\r\nSent: Wednesday, January 04, 2017 1:19 PM\r\nTo: FXCMAPI/ForexConnectAPI-win32 <ForexConnectAPI-win32@noreply.github.com>\r\nCc: api <api@fxcm.com>; Comment <comment@noreply.github.com>\r\nSubject: Re: [FXCMAPI/ForexConnectAPI-win32] This Library is not compatible with g++ under MinGW (#1)\r\n\r\n\r\nHi, thanks for your response.\r\n\r\nThe DLL works well in Visual Studio in my project, We have used it a long time.\r\n\r\nThe error is because the dll you provide is compiled by MSVC, but in some reason I need to use gcc&g++ under MinGW to compile our project and link your dll.\r\n\r\nBut gcc can not parse the dll generated by MSVC well.\r\n\r\nSo, Is possible you recompile one new library which is compiled by g++ on windows, and release it.\r\n\r\n—\r\nYou are receiving this because you commented.\r\nReply to this email directly, view it on GitHub<https://github.com/FXCMAPI/ForexConnectAPI-win32/issues/1#issuecomment-270444561>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMb2L91EPoSrlVGCh6UUXGDhYRI82FX1ks5rO-J7gaJpZM4LasGO>.\r\n"}}
{"actor":{"display_login":"FXCMAPI"}}