Search found 11 matches

by thepursuer
Mon Feb 05, 2024 1:19 am
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Whoops, I copy pasted an attempt to change the path to bash.exe. Originally it looked like:

Code: Select all

"C:\\devkitpro\\msys2\\usr\\bin\\bash.exe"
It might be worth noting that the problem happens even if I just open the terminal outside of vscode.
by thepursuer
Sun Feb 04, 2024 9:58 am
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Yeah I'm using the integrated terminal. I run cmake inside of the terminal, not through vscode. My vscode settings looks like this: { "terminal.integrated.profiles.windows": { "msys2": { "path": "/opt/devkitpro/msys2/usr/bin/bash.exe" } }, "terminal.integ...
by thepursuer
Thu Feb 01, 2024 12:26 am
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Actually after some usage, this error occurs even without the fetch content call :/. It's probably something about my environmnet that is causing this. If I figure out what is wrong I'll post back with a solution.
by thepursuer
Thu Jan 25, 2024 7:11 am
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Hmmm after reruning pacman update, I got the latest cmake: 28.1. I tried your test project and it's still the same though. I can build a binary once and then after that I get the error. Here's the output of env: ProgramFiles(x86)=C:\Program Files (x86) CommonProgramFiles(x86)=C:\Program Files (x86)\...
by thepursuer
Wed Jan 24, 2024 1:10 pm
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Gotcha, I removed the include() from my cmake lists and used the script instead. Unfortunately it has not solved the issue. And it looks like the latest cmake package for mysys2 is version 25.1. I'm unfortuatnely not familiar with how to install the latest version manually using mysys2. Would it be ...
by thepursuer
Tue Jan 23, 2024 10:04 am
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Ok I figured out where the issue is occuring. It seems to be related to Cmake's FetchContent. Here is a reproducable example: # Specify the minimum version of CMake required cmake_minimum_required(VERSION 3.25) include(FetchContent) # Set the project name and version project(my_gba_project VERSION 1...
by thepursuer
Mon Jan 15, 2024 3:17 pm
Forum: GBA Development
Topic: Adding functions from third party library to iwram
Replies: 4
Views: 1609

Re: Adding functions from third party library to iwram

That's super helpful! Thank you so much!
by thepursuer
Fri Jan 12, 2024 9:31 am
Forum: GBA Development
Topic: Adding functions from third party library to iwram
Replies: 4
Views: 1609

Re: Adding functions from third party library to iwram

Thanks I think this may be a little beyond me at the moment after all. I ended up just writing a git patch for the library and added the sections attribute to the ones I wanted in iwram. Is code marked with the EWRAM_CODE define automatically compiled as thumb by the toolchain? Also IWRAM_CODE and I...
by thepursuer
Fri Dec 29, 2023 3:00 pm
Forum: GBA Development
Topic: Adding functions from third party library to iwram
Replies: 4
Views: 1609

Adding functions from third party library to iwram

I've been fooling around seeing what I can get to compile from cmake's fetch content for the gba when I got an idea after trying this . It's a fixed precision math library and it compiles perfectly without modification which was very satisfying. Since it's math related I thought it would be a good i...
by thepursuer
Thu Dec 28, 2023 4:19 am
Forum: GBA Development
Topic: Linking error: undefined reference BoyScoutUpdateSong()
Replies: 12
Views: 7157

Re: Linking error: undefined reference BoyScoutUpdateSong()

Thank you for the reply! Unfortunately I shelved the project for a while and did not get a chance to read this. I did get it working on my own at the time via a different method but I didn't know about the arm-none-eabi-cmake though or the windows paths. I changed that up and I'm trying to solve a d...