changeset 6:e537b3b8b2b9 ofa-vamp-plugin

...
author cannam
date Mon, 01 Dec 2008 20:55:28 +0000
parents 9f893b011139
children 9b8599d10aa2
files Makefile protocol.cpp vamp-plugin.map
diffstat 3 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Sep 30 12:19:19 2008 +0000
+++ b/Makefile	Mon Dec 01 20:55:28 2008 +0000
@@ -1,10 +1,10 @@
 
-CXXFLAGS	:= -I../vamp-plugin-sdk -O2 -Wall
+CXXFLAGS	:= -fPIC -O2 -Wall
 
 #CXXFLAGS	:= -I../vamp-plugin-sdk -O3 -Wall -march=pentium4 -msse -msse2 -fomit-frame-pointer -ffast-math
 
 ofa-vamp-plugin.so:	OfaVampPlugin.o protocol.o
-	g++ -shared $^ -o $@ -L../vamp-plugin-sdk/vamp-sdk -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -lofa -lcurl -lexpat
+	g++ -shared $^ -o $@ -L../vamp-plugin-sdk/vamp-sdk -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -Wl,--version-script=vamp-plugin.map -lofa -lcurl -lexpat
 
 clean:	
 	rm *.o
--- a/protocol.cpp	Tue Sep 30 12:19:19 2008 +0000
+++ b/protocol.cpp	Mon Dec 01 20:55:28 2008 +0000
@@ -170,7 +170,7 @@
 
     err = string(XML_ErrorString(XML_GetErrorCode(parser)));
     char num[10];
-    sprintf(num, "%d", XML_GetCurrentLineNumber(parser));
+    sprintf(num, "%d", (int)XML_GetCurrentLineNumber(parser));
     err += string(" on line ") + string(num);
     XML_ParserFree(parser);
 
@@ -258,7 +258,7 @@
     }
 //    printf("response: %s\n\n", response.c_str());
 
-    unsigned int q = response.find("<?xml");
+    int q = response.find("<?xml");
     if (q != string::npos) {
         response = response.substr(q);
     }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vamp-plugin.map	Mon Dec 01 20:55:28 2008 +0000
@@ -0,0 +1,4 @@
+{
+	global: vampGetPluginDescriptor;
+	local: *;
+};