Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Undefined reference in liballeg.so.4.2 on Fedora Core Linux

Credits go to ReyBrujo for helping out!
This thread is locked; no one can reply to it. rss feed Print
Undefined reference in liballeg.so.4.2 on Fedora Core Linux
Tron Thomas
Member #8,294
February 2007

I am writing a program using Fedora Core Linx 6, Intel. I have no direct dependencies to Allegro in my program. However, when I try to build I get many errors like the following when trying to link:

/usr/lib/liballeg.so.4.2: undefined reference to `_poly_zbuf_atex_mask_trans15'
/usr/lib/liballeg.so.4.2: undefined reference to `_poly_scanline_ptex_mask_lit16d'
/usr/lib/liballeg.so.4.2: undefined reference to `_poly_scanline_atex_lit15x'
/usr/lib/liballeg.so.4.2: undefined reference to `_poly_scanline_atex_mask_trans32'
/usr/lib/liballeg.so.4.2: undefined reference to `_poly_zbuf_ptex_trans8'
...

I have no idea what is causing these errors and how to fix them.
What is needed to resolve these undefined references?

ReyBrujo
Moderator
January 2001
avatar

What is your command line?

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Tron Thomas
Member #8,294
February 2007

I'm not sure what you mean. I am building a C++ program from a Makefile.

Here is the command that attempts to do the link:

g++ -g -Wall -ansi -pedantic Animation.o BoundingVolume.o Character.o DataLoader.o EventData.o FileTag.o Joint.o KeyFrame.o LineSegment.o Matrix.o MeshMaterial.o MeshVertex.o Quadruple.o Quaternion.o ResponseData.o Scene.o SceneElement.o SkeletalAnimation.o SkinnedMesh.o SkinnedMeshLoader.o SkinnedVertexBuffer.o SkinnedVertex.o TextureManager.o Tweeners.o Utilities.o Vector3D.o XApplication.o XSceneController.o XWorldTestView.o -o WorldTest -L/usr/X11R6/lib -lX11 -lGL -lGLU -lIL -lILU -lILUT

ReyBrujo
Moderator
January 2001
avatar

It is not adding Allegro's libraries, that is why it fails. The makefile should also add `allegro-config --libs` to the command line to link against Allegro.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Tron Thomas
Member #8,294
February 2007

Okay, that fixed the problem.
Thanks

ReyBrujo
Moderator
January 2001
avatar

Nevertheless, it is pretty strange that, having no dependencies to Allegro, you need it. Maybe one of those libraries do need it.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Go to: