{"action":"created","issue":{"url":"https://api.github.com/repos/aquynh/capstone/issues/335","labels_url":"https://api.github.com/repos/aquynh/capstone/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/aquynh/capstone/issues/335/comments","events_url":"https://api.github.com/repos/aquynh/capstone/issues/335/events","html_url":"https://github.com/aquynh/capstone/issues/335","id":70614096,"number":335,"title":"Capstone compile issues on Dev c++(Mingw) Windows 7(64) and XP.","user":{"login":"conii","id":12095855,"avatar_url":"https://avatars.githubusercontent.com/u/12095855?v=3","gravatar_id":"","url":"https://api.github.com/users/conii","html_url":"https://github.com/conii","followers_url":"https://api.github.com/users/conii/followers","following_url":"https://api.github.com/users/conii/following{/other_user}","gists_url":"https://api.github.com/users/conii/gists{/gist_id}","starred_url":"https://api.github.com/users/conii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conii/subscriptions","organizations_url":"https://api.github.com/users/conii/orgs","repos_url":"https://api.github.com/users/conii/repos","events_url":"https://api.github.com/users/conii/events{/privacy}","received_events_url":"https://api.github.com/users/conii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-24T07:36:06Z","updated_at":"2015-04-25T07:31:43Z","closed_at":null,"body":"#######################################################################\r\nHi all.Firstly sorry is my bad English.\r\nYesterday i download capstone -3.0.2.zip from official capstone site.\r\nIn my office pc Windows 7 64bit when extract zip file and run test.exe its sucessfully run.\r\nSmall output:\r\n#########################################################################\r\nC:\\Users\\Devel\\Desktop>test.exe\r\n> ****************\r\n> Platform: X86 16bit (Intel syntax)\r\n> Code: 0x8d 0x4c 0x32 0x08 0x01 0xd8 0x81 0xc6 0x34 0x12 0x00 0x00\r\n> Disasm:\r\n> 0x1000: lea             cx, word ptr [si + 0x32]\r\n> 0x1003: or              byte ptr [bx + di], al\r\n> 0x1005: fadd            dword ptr [bx + di + 0x34c6]\r\n> 0x1009: adc             al, byte ptr [bx + si]\r\n> 0x100b:\r\n>\r\n> ****************\r\n> Platform: X86 32bit (ATT syntax)\r\n> Code: 0x8d 0x4c 0x32 0x08 0x01 0xd8 0x81 0xc6 0x34 0x12 0x00 0x00\r\n> Disasm:\r\n> 0x1000: leal            8(%edx, %esi), %ecx\r\n> 0x1004: addl            %ebx, %eax\r\n> 0x1006: addl            $0x1234, %esi\r\n> 0x100c:\r\n##############################################################\r\nBut i cannot run this file in my XP error says:Not valid PE.\r\n\r\nOver compile time in Dev c++ \r\nI manual adding include directory in compiler include directory also library file add in my project all is ok.\r\nI copy and paste example source from offical site.\r\nAnd press F7 button to compile script Compiler says error:\r\n#########################################################################\r\nCompiler: Default compiler\r\nBuilding Makefile: \"C:\\Users\\Devel\\Desktop\\Makefile.win\"\r\nExecuting  make...\r\nmingw32-make.exe -f \"C:\\Users\\Devel\\Desktop\\Makefile.win\" all\r\ngcc.exe -c main.c -o main.o -I\"C:/MinGW/include\"  -I\"C:/MinGW/include/curl\" \r\n-I\"C:/MinGW/include/openssl\" \r\n-I\"C:/Users/Devel/Dropbox/capstone-3.0.2-win32/capstone-3.0.2-win32/include\"   \r\n-masm=intel\r\n\r\ngcc.exe main.o  -o \"Project1.exe\" -L\"C:/MinGW/lib\" -L\"C:/MinGW/lib/curl\"\r\n-L\"C:/MinGW/lib/openssl\"\r\n../Dropbox/capstone-3.0.2-win32/capstone-3.0.2-win32/capstone.lib  \r\n\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\nWarning: corrupt .drectve at end of def file\r\n../Dropbox/capstone-3.0.2-win32/capstone-3.0.2-win32/capstone.lib(CMakeFiles/capstone-static.dir/cs.c.obj):(.text$mn+0x7):\r\nundefined reference to `__security_cookie'\r\n../Dropbox/capstone-3.0.2-win32/capstone-3.0.2-win32/capstone.lib(CMakeFiles/capstone-static.dir/cs.c.obj):(.text$mn+0x4e):\r\nundefined reference to `@__security_check_cookie@4'\r\nc:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:\r\n../Dropbox/capstone-3.0.2-win32/capstone-3.0.2-win32/capstone.lib(CMakeFiles/capstone-static.dir/cs.c.obj):\r\nbad reloc address 0x4e in section `.text$mn'\r\nc:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link\r\nfailed: Invalid operation\r\ncollect2.exe: error: ld returned 1 exit status\r\n\r\nC:\\Users\\Devel\\Desktop\\Makefile.win:27: recipe for target 'Project1.exe' failed\r\n\r\nmingw32-make.exe: *** [Project1.exe] Error 1\r\n\r\nExecution terminated\r\n##########################################################################\r\nOn my XP compiler error:\r\n###########################################################################\r\nWarning: .drectve `/DEFAULTLIB:\"LIBCMT\" /DEFAULTLIB:\"OLDNAMES\" ' unrecognized \r\nWarning: .drectve `/DEFAULTLIB:\"LIBCMT\" /DEFAULTLIB:\"OLDNAMES\" ' unrecognized \r\nWarning: .drectve `/DEFAULTLIB:\"LIBCMT\" /DEFAULTLIB:\"OLDNAMES\" ' unrecognized \r\nWarning: .drectve `/DEFAULTLIB:\"LIBCMT\" /DEFAULTLIB:\"OLDNAMES\" ' unrecognized \r\nWarning: .drectve `/DEFAULTLIB:\"LIBCMT\" /DEFAULTLIB:\"OLDNAMES\" ' unrecognized "},"comment":{"url":"https://api.github.com/repos/aquynh/capstone/issues/comments/96145816","html_url":"https://github.com/aquynh/capstone/issues/335#issuecomment-96145816","issue_url":"https://api.github.com/repos/aquynh/capstone/issues/335","id":96145816,"user":{"login":"conii","id":12095855,"avatar_url":"https://avatars.githubusercontent.com/u/12095855?v=3","gravatar_id":"","url":"https://api.github.com/users/conii","html_url":"https://github.com/conii","followers_url":"https://api.github.com/users/conii/followers","following_url":"https://api.github.com/users/conii/following{/other_user}","gists_url":"https://api.github.com/users/conii/gists{/gist_id}","starred_url":"https://api.github.com/users/conii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conii/subscriptions","organizations_url":"https://api.github.com/users/conii/orgs","repos_url":"https://api.github.com/users/conii/repos","events_url":"https://api.github.com/users/conii/events{/privacy}","received_events_url":"https://api.github.com/users/conii/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T07:31:43Z","updated_at":"2015-04-25T07:31:43Z","body":"Maybe yes.\r\nBecause Mingw compiler cannot support Microsoft Compile Static Library such as (*.lib) file!\r\nMingw static library is *.a file.\r\nI could write code over Windows Api LoadLibrary and GetProcAddress for dynamically call capstone.dll file but its too long.as for MSVC I dont test MSVC because i do not use.\r\nBut test.exe works in Windows 7(32 and 64 i tested it)."}}