CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    907

    Compiling blender with mingw64 / mingw32-make.exe

    Code:
    In file included from E:\blender\source\intern\guardedalloc/MEM_guardedalloc.h:63:0,
                     from E:\blender\source\source\gameengine\BlenderRoutines\KX_BlenderGL.cpp:48:
    c:\progra~1\mingw-~1\x64-47~1.2-p\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include
    /stdio.h:343:5: error: previous declaration of 'int _snprintf(char*, size_t, const char*, ...)' with 'C++' linkage
    In file included from E:\blender\source\intern\guardedalloc/MEM_guardedalloc.h:63:0,
                     from E:\blender\source\source\gameengine\BlenderRoutines\KX_BlenderGL.cpp:48:
    c:\progra~1\mingw-~1\x64-47~1.2-p\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include
    /stdio.h:538:110: error: conflicts with new declaration with 'C' linkage
    source\gameengine\BlenderRoutines\CMakeFiles\ge_blen_routines.dir\build.make:122: recipe for target 'source/gameengine/B
    lenderRoutines/CMakeFiles/ge_blen_routines.dir/KX_BlenderGL.cpp.obj' failed
    mingw32-make[3]: *** [source/gameengine/BlenderRoutines/CMakeFiles/ge_blen_routines.dir/KX_BlenderGL.cpp.obj] Error 1
    CMakeFiles\Makefile2:3672: recipe for target 'source/gameengine/BlenderRoutines/CMakeFiles/ge_blen_routines.dir/all' fai
    led
    mingw32-make[2]: *** [source/gameengine/BlenderRoutines/CMakeFiles/ge_blen_routines.dir/all] Error 2
    makefile:142: recipe for target 'all' failed
    mingw32-make[1]: *** [all] Error 2
    A second question, how can I graphically debug blender with mingw64?
    Thanks
    Jack

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Compiling blender with mingw64 / mingw32-make.exe

    Since your code doesn't build a debugger session isn't possible. If it build's, use gdb (make sure to compile with debug flags) to debug it.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured