undefined symbol errors when running latest taglib on osx app

Nonnus ™ nonnus3g at gmail.com
Thu Jan 27 11:11:00 CET 2011


hi

i am able to compile taglib on osx to include in my own app or even add a
precompiled framework version without any errors,
but as soon as i try to use taglib using your simple example:


//  UntitledAppDelegate.mm


#import "UntitledAppDelegate.h"


#include <taglib/fileref.h>

#include <taglib/tag.h>

#include <taglib/tstring.h>

#include <taglib/taglib.h>



@implementation UntitledAppDelegate


@synthesize window;


- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

// Insert code here to initialize your application

 TagLib::FileRef f("Latex Solar Beef.mp3");

TagLib::String artist = f.tag()->artist(); // artist == "Frank Zappa"

 f.tag()->setAlbum("Fillmore East");

f.save();

}


@end

i get the following errors mentioning undefined symbols:

Ld "/Users/Nonnus/iPhone Dev/Xcode
builds/Debug/Untitled.app/Contents/MacOS/Untitled" normal i386

cd /Users/nonnus/Desktop/Untitled

setenv MACOSX_DEPLOYMENT_TARGET 10.6

/Developer/usr/bin/g++-4.2 -arch i386 -isysroot
/Developer/SDKs/MacOSX10.6.sdk "-L/Users/Nonnus/iPhone Dev/Xcode
builds/Debug" "-F/Users/Nonnus/iPhone Dev/Xcode builds/Debug" -filelist
"/Users/Nonnus/iPhone Dev/Xcode
builds/Untitled.build/Debug/Untitled.build/Objects-normal/i386/Untitled.LinkFileList"
-mmacosx-version-min=10.6 -framework Cocoa -o "/Users/Nonnus/iPhone
Dev/Xcode builds/Debug/Untitled.app/Contents/MacOS/Untitled"


Undefined symbols:

  "TagLib::String::String(char const*, TagLib::String::Type)", referenced
from:

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

  "TagLib::FileRef::~FileRef()", referenced from:

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

  "TagLib::String::~String()", referenced from:

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

  "TagLib::FileRef::tag() const", referenced from:

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

  "TagLib::FileRef::save()", referenced from:

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

  "TagLib::FileRef::FileRef(char const*, bool,
TagLib::AudioProperties::ReadStyle)", referenced from:

      -[UntitledAppDelegate applicationDidFinishLaunching:] in
UntitledAppDelegate.o

ld: symbol(s) not found

collect2: ld returned 1 exit status



can anyone provide some info on what is going on and how to fix it ?


thanks in advance


nonnus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110127/3c9aa6f6/attachment.htm 


More information about the taglib-devel mailing list