Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when compiling #503

Open
Setoula opened this issue Dec 28, 2024 · 2 comments
Open

error when compiling #503

Setoula opened this issue Dec 28, 2024 · 2 comments

Comments

@Setoula
Copy link

Setoula commented Dec 28, 2024

C:\Users\bAppData\Local\Temp\ccb469Tf.ltrans0.ltrans.o:(.rodata+0x6): undefined reference to Print::write(unsigned char const*, unsigned int)' c:/users/b/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to main'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

@greiman
Copy link
Owner

greiman commented Dec 28, 2024

I have no idea how this involves SdFat.

@brightproject
Copy link

brightproject commented Dec 29, 2024

C:\Users\bAppData\Local\Temp\ccb469Tf.ltrans0.ltrans.o:(.rodata+0x6): undefined reference to Print::write(unsigned char const*, unsigned int)' c:/users/b/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to main' collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

It's really hard to help you without knowing what microcontroller, what IDE and what framework you're using.
I've had this happen when building code for a framework

https://github.com/platformio/platform-ststm32

Then I used a project that was written for Linux and required opening files.

https://github.com/orgs/stm32duino/discussions/2523

You seem to have something to do with the main file, again, write more input data and the task will become clearer🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants