{"issue":{"milestone":null,"user":{"id":20378,"login":"agrimm","url":"https://api.github.com/users/agrimm","avatar_url":"https://secure.gravatar.com/avatar/01bbb59a1c3ef9960f25a97afe7e920f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"01bbb59a1c3ef9960f25a97afe7e920f"},"title":"Compilation error on Windows","created_at":"2011-07-26T01:45:07Z","updated_at":"2011-12-20T11:50:02Z","labels":[],"state":"open","id":1286040,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/michaeledgar/laser/issues/4","closed_at":null,"body":"Running the following command on Windows with RubyInstaller installed Ruby\r\n\r\n    gem install --verbose --force pkg\\laser-0.5.2.gem\r\n\r\ngave me\r\n\r\n    Building native extensions.  This could take a while...\r\n    ERROR:  Error installing pkg\\laser-0.5.2.gem:\r\n            ERROR: Failed to build gem native extension.\r\n    \r\n            C:/Ruby19/bin/ruby.exe extconf.rb\r\n    checking for main() in -lstdc++... yes\r\n    creating Makefile\r\n    \r\n    make\r\n    g++ -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -I.   -O2 -g -Wall -Wno-parentheses     -o BasicBlock.o -c BasicBlock.cp\r\n    p\r\n    In file included from BasicBlock.cpp:1:0:\r\n    BasicBlock.h: In constructor 'Laser::BasicBlock::BasicBlock()':\r\n    BasicBlock.h:26:100: warning: converting to non-pointer type 'VALUE' from NULL\r\n    BasicBlock.h:26:100: warning: converting to non-pointer type 'VALUE' from NULL\r\n    g++ -shared -s -o BasicBlock.so BasicBlock.o -L. -LC:/Ruby19/lib -L.  -Wl,--enable-auto-image-base,--enable-auto-import   -lmsvcrt-ruby191 -lstdc++  -lshell32 -lws2_32\r\n    c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1\\libstdc++.a(stdexcept.o):stdexcept.cc:(.text+0x0): multiple definition of `std::logic_error::what() const'\r\n    c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1/libstdc++.dll.a(d000700.o):(.text+0x0): first defined here\r\n    c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1\\libstdc++.a(stdexcept.o):stdexcept.cc:(.text+0xb0): multiple definition of `std::logic_error::~logic_error()'\r\n    c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1/libstdc++.dll.a(d001554.o):(.text+0x0): first defined here\r\n    c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1\\libstdc++.a(stdexcept.o):stdexcept.cc:(.text+0x148): multiple definition of `std::logic_error::logic_error(std::string const&)'\r\n    c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1/libstdc++.dll.a(d001551.o):(.text+0x0): first defined here\r\n    collect2: ld returned 1 exit status\r\n    make: *** [BasicBlock.so] Error 1\r\n    \r\n    \r\n    Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/laser-0.5.2 for inspection.\r\n    Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/laser-0.5.2/ext/laser/gem_make.out\r\n\r\nLet me know if you need more details.","number":4,"url":"https://api.github.com/repos/michaeledgar/laser/issues/4","comments":6,"assignee":null},"comment":{"user":{"id":4182,"login":"luislavena","url":"https://api.github.com/users/luislavena","avatar_url":"https://secure.gravatar.com/avatar/e7cff3cfd41c495e1012227d7dc24202?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e7cff3cfd41c495e1012227d7dc24202"},"created_at":"2011-12-20T11:50:02Z","updated_at":"2011-12-20T11:50:02Z","id":3217854,"body":"@michaeledgar The gist is here:\r\n\r\nhttps://gist.github.com/9c427254f4b97eb54c1b\r\n\r\nAlso, using rake-compiler will enable in a future any can generate cross compiled gems (from Linux/OSX to Windows) so you can try changes without the need of a Windows box.\r\n\r\nCheers.\r\n","url":"https://api.github.com/repos/michaeledgar/laser/issues/comments/3217854"},"action":"created"}