Undefined reference to end_mirror and end_translate

52 views
Skip to first unread message

stephen muwanguzi

unread,
May 6, 2025, 6:06:13 AMMay 6
to basilisk-fr
My code was running well until I reinstalled basiilisk.  Does anybody know which libraries I should link to clear error : "undefined reference to 'end mirror' and undefined reference to 'end_translate'

I am currently compiling with 

CFLAFGS="-grid=octree -std=c99" qcc -O2 -Wall wave_wall_2.c -o wave_run -L/home/admin2/basilisk/src/gl -lglutils -lfb_osmesa -lOSMesa -lGLU -lm -L/home/admin2/basilisk/src/wsServer -lws

b55a71aec894204390e383a71c60f63.jpg

Stephen

Stephane Popinet

unread,
May 6, 2025, 7:54:27 AMMay 6
to basil...@googlegroups.com
Hi Stephen,

This is not a problem with libraries. You are not using "mirror" and
"translate" properly. The syntax is:

translate(...) {
...
}

mirror(...) {
...
}

not

begin_translate();
...
end_translate();

(this used to work with the previous version but was not the way
"macros" were intended to be used i.e. it was already incorrect).

hope this helps,

Stephane


OpenPGP_0x78F22AD6304D74BE.asc
OpenPGP_signature.asc
Reply all
Reply to author
Forward
0 new messages