propertyClash/0000755000055000003200000000000010467055740014515 5ustar smithpinteam00000000000000propertyClash/TPProperty.H0000644000055000003200000000007710467055154016721 0ustar smithpinteam00000000000000class Property { public: Property(); ~Property(); }; propertyClash/TPProperty.C0000644000055000003200000000011210467054036016700 0ustar smithpinteam00000000000000#include "TPProperty.H" Property::Property() {} Property::~Property() {} propertyClash/main.C0000644000055000003200000000133510467055052015543 0ustar smithpinteam00000000000000#include #include #include #include "TPProperty.H" int main(int argc, char** argv) { Property property; cout << "Calling ndb_init" << endl; if (ndb_init()) { cout << "ndb_init failed" << endl; } else { cout << "ndb_init succeeded" << endl; } cout << "Creating cluster" << endl; Ndb_cluster_connection cluster("glass"); cout << "Connecting cluster" << endl; int ndbStatusCode = cluster.connect(4,5,1); cout << "cluster.connect returned " << ndbStatusCode << endl; cout << "Cluster readying" << endl; ndbStatusCode = cluster.wait_until_ready(60,60); cout << "cluster.wait_until_ready returned " << ndbStatusCode << endl; return ndbStatusCode; } propertyClash/makeError.txt0000644000055000003200000000035210467055655017212 0ustar smithpinteam00000000000000ar: creating libTPProperty.a /usr/ccs/bin/ld: Duplicate symbol "Property::~Property()" in files /usr/local/mysql/lib/libndbclient.a(Properties.o) and ./libTPProperty.a(TPProperty.o) /usr/ccs/bin/ld: Found 1 duplicate symbol(s) Stop. propertyClash/Makefile0000644000055000003200000000073210467055217016156 0ustar smithpinteam00000000000000CC = aCC OBJS = main.o INCLUDES = -I/usr/local/mysql/include/ndb -I/usr/local/mysql/include/ndb/ndbapi DEBUG = -DTRACE_ON -g all: example example: $(OBJS) libTPProperty.a $(CC) -o example $(OBJS) -L. -L/usr/local/mysql/lib -lndbclient -lpthread -lmysqlclient_r -lmysys -lmystrings -lTPProperty libTPProperty.a: TPProperty.o ar q libTPProperty.a TPProperty.o clean: rm -Rf example $(OBJS) libTPProperty.a TPProperty.o .C.o : $(CC) $(DEBUG) -c $(INCLUDES) -o $@ $<