Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Did anyone ever encounter this problem when linking a brew app?

Thanks

Nevermind. Found the problem. Wasn't linking libgcc.a...

Nevermind. Found the problem. Wasn't linking libgcc.a...

It sound slike you're using GCC. You should be able to find more info on that on the GCC set of threads on this forum.
If you're just using GCC to generate your DLL, tack "-lgcc" onto the end of your link command. If you're using the arm-elf GCC to build your MOD, you will probably need to install the newlib version of libgcc, and add "-L -lgcc" to the end of your link command.
NOTE: read the license stuff for newlib carefully, it may not be suitable for release.
Also, I think (but I'm not certain) that __divsi3 is the division function for 64 bit integers. If you can eliminate those commands, or possibly all 64 bit integers from your app, then you shouldn't need to link to libgcc at all.
-Jesse

It sound slike you're using GCC. You should be able to find more info on that on the GCC set of threads on this forum.
If you're just using GCC to generate your DLL, tack "-lgcc" onto the end of your link command. If you're using the arm-elf GCC to build your MOD, you will probably need to install the newlib version of libgcc, and add "-L -lgcc" to the end of your link command.
NOTE: read the license stuff for newlib carefully, it may not be suitable for release.
Also, I think (but I'm not certain) that __divsi3 is the division function for 64 bit integers. If you can eliminate those commands, or possibly all 64 bit integers from your app, then you shouldn't need to link to libgcc at all.
-Jesse

Heh. "Crossed in the mail."

Heh. "Crossed in the mail."

Raz;9808 wrote:Nevermind. Found the problem. Wasn't linking libgcc.a...
Dear Raz,
i am having the same problem as you. could you tell me your solution?

Raz;9808 wrote:Nevermind. Found the problem. Wasn't linking libgcc.a...
Dear Raz,
i am having the same problem as you. could you tell me your solution?