Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Porting RPI console app to Odroid N2

Featured Replies

Hello,

 

I try to port a small console application from Raspi to an Ordoid N2.

I use Code::blocks for my development and I have no trouble on Raspi 2 and Raspi 4.

 

My project is using the math lib for 2 functions pow and log.

 

I pickup my sources on the N2 and at link time I have these 2 errors

 

Here are messages :

gcc -Wall -fno-strict-aliasing -g -DBIG_JOINS=1 -g -I../../Lib/open2300/include -I/usr/include/mariadb -c /home/oi/devRaspi/Dev/Meteo/open2300/Appli/suivimeteo/suivimeteo.c -o obj/Debug/suivimeteo.o
gcc -L/usr/lib/arm-linux-gnueabihf -o bin/Debug/SuiviMeteo obj/Debug/suivimeteo.o  -lz -lm -ldl  -lmysqlclient -lpthread ../../Lib/open2300/bin/Debug/libopen2300.a
/bin/ld: ../../Lib/open2300/bin/Debug/libopen2300.a(rw2300.o): in function `read_history_record':
/home/oi/devRaspi/Dev/Meteo/open2300/Lib/open2300/src/rw2300.c:2422: undefined reference to `pow'
/bin/ld: /home/oi/devRaspi/Dev/Meteo/open2300/Lib/open2300/src/rw2300.c:2423: undefined reference to `pow'
/bin/ld: /home/oi/devRaspi/Dev/Meteo/open2300/Lib/open2300/src/rw2300.c:2434: undefined reference to `log'
collect2: error: ld returned 1 exit status

 

I don't understand where could be the problem, because I have no error on raspi.

 

Thank you for your help

Edited by lanefu
moderator updated title

  • Author

No htey don't, but when i added it nothing changes.

 

But i insist my problem is a link time not at compile time

  • Author

I think there is a trouble on the installation of the Gnu compiler/linker / library  on this Armbian, but I don't know how to investigate this trouble...

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.