{"action":"created","issue":{"url":"https://api.github.com/repos/haxeui/hxWidgets/issues/55","repository_url":"https://api.github.com/repos/haxeui/hxWidgets","labels_url":"https://api.github.com/repos/haxeui/hxWidgets/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/haxeui/hxWidgets/issues/55/comments","events_url":"https://api.github.com/repos/haxeui/hxWidgets/issues/55/events","html_url":"https://github.com/haxeui/hxWidgets/issues/55","id":361626502,"node_id":"MDU6SXNzdWUzNjE2MjY1MDI=","number":55,"title":"Some error with ssize_t","user":{"login":"JeremyGiner","id":17856163,"node_id":"MDQ6VXNlcjE3ODU2MTYz","avatar_url":"https://avatars1.githubusercontent.com/u/17856163?v=4","gravatar_id":"","url":"https://api.github.com/users/JeremyGiner","html_url":"https://github.com/JeremyGiner","followers_url":"https://api.github.com/users/JeremyGiner/followers","following_url":"https://api.github.com/users/JeremyGiner/following{/other_user}","gists_url":"https://api.github.com/users/JeremyGiner/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyGiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyGiner/subscriptions","organizations_url":"https://api.github.com/users/JeremyGiner/orgs","repos_url":"https://api.github.com/users/JeremyGiner/repos","events_url":"https://api.github.com/users/JeremyGiner/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyGiner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-19T08:03:22Z","updated_at":"2018-09-19T12:54:19Z","closed_at":null,"author_association":"NONE","body":"I'm trying to compile a simple test program using dlls with cygwin and gcc and i get the following error :\r\n\r\n> Error: Error while running command\r\n> env g++ \"-IC:/workspace/haxe_test/New Project/build_cpp/obj/cygwin64/__pch/haxe\" -Iinclude -IC:\\\\cygwin64\\\\lib\\\\gcc720_dll\\include -IC:\\\\cygwin64\\\\lib\\\\gcc720_dll\\lib\\vc_dll\\mswu -IC:/HaxeToolkit/haxe/lib/hxWidgets/1,0,0\\..\\include -DUNICODE -D_UNICODE -DwxMSVC_VERISON_AUTO -DWIN32 -D__WXMSW__ -D__WX__=1 -DWXUSINGDLL -c -O2 -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 -m64 -IC:/HaxeToolkit/haxe/lib/hxcpp/4,0,4/include -c -DwxUSE_LIBMSPACK -O2 -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 -m64 -IC:/HaxeToolkit/haxe/lib/hxcpp/4,0,4/include -x c++ -frtti -frtti ./src/wx/widgets/_FontWeight/FontWeight_Impl_.cpp \"-oC:/workspace/haxe_test/New Project/build_cpp/obj/cygwin64/1fa3da40_FontWeight_Impl_.o\"\r\n> \r\n> In file included from /usr/lib/gcc720_dll/include/wx/defs.h:846:0,\r\n>                  from /usr/lib/gcc720_dll/include/wx/font.h:18,\r\n>                  from include/wx/widgets/_FontWeight/FontWeight_Impl_.h:11,\r\n>                  from ./src/wx/widgets/_FontWeight/FontWeight_Impl_.cpp:5:\r\n> /usr/lib/gcc720_dll/include/wx/types.h:347:25: error: conflicting declaration 'typedef wxInt64 ssize_t'\r\n>          typedef wxInt64 ssize_t;\r\n >                          ^~~~~~~\r\n> In file included from /usr/include/sys/unistd.h:12:0,\r\n>                  from /usr/include/unistd.h:4,\r\n>                  from C:/HaxeToolkit/haxe/lib/hxcpp/4,0,4/include/hxcpp.h:56:\r\n> /usr/include/sys/types.h:200:18: note: previous declaration as 'typedef _ssize_t ssize_t'\r\n>  typedef _ssize_t ssize_t;\r\n>                   ^~~~~~~\r\n>\r\nI'm not really good with c++ stuff but it seems like hxcpp and wxWidget doesn't like each other. \r\nAny idea on what would be the problem?"},"comment":{"url":"https://api.github.com/repos/haxeui/hxWidgets/issues/comments/422791503","html_url":"https://github.com/haxeui/hxWidgets/issues/55#issuecomment-422791503","issue_url":"https://api.github.com/repos/haxeui/hxWidgets/issues/55","id":422791503,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjc5MTUwMw==","user":{"login":"JeremyGiner","id":17856163,"node_id":"MDQ6VXNlcjE3ODU2MTYz","avatar_url":"https://avatars1.githubusercontent.com/u/17856163?v=4","gravatar_id":"","url":"https://api.github.com/users/JeremyGiner","html_url":"https://github.com/JeremyGiner","followers_url":"https://api.github.com/users/JeremyGiner/followers","following_url":"https://api.github.com/users/JeremyGiner/following{/other_user}","gists_url":"https://api.github.com/users/JeremyGiner/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyGiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyGiner/subscriptions","organizations_url":"https://api.github.com/users/JeremyGiner/orgs","repos_url":"https://api.github.com/users/JeremyGiner/repos","events_url":"https://api.github.com/users/JeremyGiner/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyGiner/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T12:54:19Z","updated_at":"2018-09-19T12:54:19Z","author_association":"NONE","body":"haxe 3.4.0\r\nhxcpp (Haxe C++ Runtime Support) (4.0.4)\r\nwxWidgets 3.1.1\r\n\r\nMain.hx : \r\n```\r\npackage;\r\n\r\nimport hx.widgets.*;\r\n\r\nclass Main {\r\n    public static function main() {\r\n\t\tvar app = new App();\r\n        app.init();\r\n\r\n        var frame:Frame = new Frame(null, \"hxWidgets\");\r\n\r\n        var taskBarIcon = new TaskBarIcon();\r\n        taskBarIcon.setBitmap(Bitmap.fromHaxeResource(\"haxe-logo-tiny.png\"), \"Some tooltip\");\r\n        \r\n        var platform:PlatformInfo  = new PlatformInfo();\r\n        if (platform.isWindows) {\r\n            frame.backgroundColour = 0xFFFFFF;\r\n        }\r\n\r\n        //frame.menuBar = buildMenu();\r\n        frame.sizer = new BoxSizer(Orientation.VERTICAL);\r\n        frame.resize(800, 600);\r\n\r\n        var imageList:ImageList = new ImageList(16, 16);\r\n        imageList.add(Bitmap.fromHaxeResource(\"ui-check-boxes-series.png\"));\r\n        imageList.add(Bitmap.fromHaxeResource(\"layer-shape-line.png\"));\r\n        imageList.add(Bitmap.fromHaxeResource(\"ui-scroll-pane-list.png\"));\r\n        imageList.add(Bitmap.fromHaxeResource(\"information-button.png\"));\r\n        imageList.add(Bitmap.fromHaxeResource(\"application-dialog.png\"));\r\n        imageList.add(Bitmap.fromHaxeResource(\"globe-green.png\"));\r\n\r\n        var tabs:Notebook = new Notebook(frame);\r\n        if (platform.isMac) {\r\n            tabs.allowIcons = false;\r\n        }\r\n        if (platform.isWindows) {\r\n            tabs.padding = new Size(6, 6);\r\n        }\r\n        tabs.imageList = imageList;\r\n\r\n        frame.sizer.add(tabs, 3, Stretch.EXPAND | Direction.ALL, 10);\r\n\r\n        frame.sizer.addSpacer(5);\r\n\r\n        frame.layout();\r\n        frame.show();\r\n\r\n        app.run();\r\n\tapp.exit();\r\n    }\r\n}\r\n```\r\nBuild.hxml : \r\n```\r\n_______________________________________________________________________________\r\n# Test compilation\r\n\r\n#-lib openfl\r\n#-lib lime\r\n-lib hxWidgets\r\n\r\n#-lib haxeui-hxwidget\r\n#-lib haxeui-core\r\n\r\n# Select directory\r\n-cp src\r\n\r\n# java target\r\n#-java build_java\r\n-cpp build_cpp\r\n\r\n#-D no-compilation\r\n-D cygwin\r\n-D windows\r\n-D HXCPP_VERBOSE=1\r\n-D HXCPP_M64\r\n-D WXWIN=C:\\cygwin64\\lib\\gcc720_dll\r\n\r\n-main Main\r\n```\r\n\r\nI don't know about VC++"}}
{"actor":{"display_login":"JeremyGiner"}}