Compile Homebrew with Eclipse C/C++ issues

Discussion in '3DS - Homebrew Development and Emulators' started by jbr373, Aug 17, 2015.

  1. jbr373
    OP

    jbr373 Member

    Newcomer
    18
    146
    Aug 17, 2015
    Gambia, The
    I'm pretty new to the 3DS Homebrew stuff so excuse the maybe stupid question, but I wanted to compile the Source examples shipped with libctru and ran into this issue:

    [File] uses VFP register arguments, [File] does not, an issue related to the libctru library being compiled with hard float, but the examples in Eclipse are not set to hard float.

    The problem I'm having is that I don't seem to be able to change that with Eclipse. I've set the flag -mfloat-abi=hard for the gcc Compiler, Linker and Assembler but it still shows the same error. Editing the Makefile and setting these flags directly in the File didn't help at all, Eclipse ignores them apparently.
    I'm using devkitPRO with an updated libctru as described on the 3dbrew wiki. the 3ds.h include is also perfectly recognized and the File Path is correct.
    I did also clean my example project and did remove all the old Object Files created without the hard float settings.

    The Cross Compiler Settings used in eclipse are:
    Cross Compiler prefix: arm-none-eabi-
    Cross Compiler Location: /opt/devkitpro/devkitARM/

    Also, Netbeans 8.0.2 doesn't work at all as well, even though I followed every step on the wiki tutorial.

    I'd be happy about any help to solve this issue :)