Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Vorbis Vorbis
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • VorbisVorbis
  • Issues
  • #11

Closed
Open
Created Mar 13, 2001 by drtic@drtic

ld can't link *f math functions

simply need to #define powf pow and other functions from math library.
maybe you do it already and it is only problem of shared include files among
platforms.

looks like this:
gcc -O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -DUSE_MEMORY_H -o de
coder_example decoder_example.o ../lib/.libs/libvorbis.a -lm -L/packages/share/l
ibogg-1.0beta4//lib -logg -lm -L/packages/share/libogg-1.0beta4//lib -logg
Undefined                       first referenced
 symbol                             in file
acosf                               ../lib/.libs/libvorbis.a(lsp.o)
logf                                ../lib/.libs/libvorbis.a(envelope.o)
expf                                ../lib/.libs/libvorbis.a(envelope.o)
rintf                               ../lib/.libs/libvorbis.a(psy.o)
atanf                               ../lib/.libs/libvorbis.a(psy.o)
powf                                ../lib/.libs/libvorbis.a(psy.o)
ld: fatal: Symbol referencing errors. No output written to decoder_example
collect2: ld returned 1 exit status
make[1]: *** [decoder_example] Error 1
make[1]: Leaving directory `/tmp/la/libvorbis-1.0beta4/examples'
make: *** [all-recursive] Error 1
Assignee
Assign to
Time tracking