kshirley / summarytrees

R package to compute and visualize summary trees
34 stars 9 forks source link

error on Windows install #2

Open timelyportfolio opened 9 years ago

timelyportfolio commented 9 years ago

I see where it has only been tested for Mac, but I thought it would be helpful to pass on the error that I am seeing when I try to install on Windows 7 with R3.1.2.

the short form when I do devtools::document()

** libs
gcc -m64 -shared -s -static-libgcc -o summarytrees.dll tmp.def Rgreedy.o Roptimal.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lR
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:374: undefined reference to `srand48'
collect2: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'summarytrees'

the long form with devtools::install()

Installing summarytrees
"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL  \
  "C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees"  \
  --library="C:/Program Files/R/R-3.1.2/library" --install-tests 

* installing *source* package 'summarytrees' ...
** libs

*** arch - i386
gcc -m32 -shared -s -static-libgcc -o summarytrees.dll tmp.def Rgreedy.o Roptimal.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lR
Cannot export F: symbol not found
Cannot export K: symbol not found
Cannot export Rgreedy: symbol not found
Cannot export Roptimal: symbol not found
Cannot export UB: symbol not found
Cannot export alpha: symbol not found
Cannot export bestlist: symbol not found
Cannot export bits: symbol not found
Cannot export buildheap: symbol not found
Cannot export childend: symbol not found
Cannot export childindex: symbol not found
Cannot export childstart: symbol not found
Cannot export clusterweights: symbol not found
Cannot export comb: symbol not found
Cannot export combine: symbol not found
Cannot export copy: symbol not found
Cannot export dotherounding: symbol not found
Cannot export drawSTofchildren: symbol not found
Cannot export drawSTrootedatonevertex: symbol not found
Cannot export drawtreeandcomputeclusterweights: symbol not found
Cannot export entropy: symbol not found
Cannot export epsstring: symbol not found
Cannot export f_vk: symbol not found
Cannot export fracpart: symbol not found
Cannot export g_vandl: symbol not found
Cannot export g_vandlminus1: symbol not found
Cannot export gg: symbol not found
Cannot export heapify: symbol not found
Cannot export heapsort_howard: symbol not found
Cannot export ifloor: symbol not found
Cannot export indexa: symbol not found
Cannot export lnD: symbol not found
Cannot export lnK: symbol not found
Cannot export lnn: symbol not found
Cannot export mainoutputfile: symbol not found
Cannot export mainoutputfilename: symbol not found
Cannot export mallocandcopytobestlist: symbol not found
Cannot export n: symbol not found
Cannot export newlist: symbol not found
Cannot export numchildren: symbol not found
Cannot export numchildrenof: symbol not found
Cannot export numclusterssofar: symbol not found
Cannot export numdescendants: symbol not found
Cannot export oldlist: symbol not found
Cannot export origsize: symbol not found
Cannot export origweight: symbol not found
Cannot export outputclusterfile: symbol not found
Cannot export outputclusterfilename: symbol not found
Cannot export outputtreefile: symbol not found
Cannot export outputtreefilename: symbol not found
Cannot export partialsum: symbol not found
Cannot export rightcount: symbol not found
Cannot export scaledsize: symbol not found
Cannot export scaledweight: symbol not found
Cannot export scaledweightsum: symbol not found
Cannot export size: symbol not found
Cannot export sort: symbol not found
Cannot export sumoffirstnumdescendants_v: symbol not found
Cannot export sumoffirstsizes_v: symbol not found
Cannot export sumofweights: symbol not found
Cannot export treefile: symbol not found
Cannot export treefilename: symbol not found
Cannot export vi: symbol not found
Cannot export weight: symbol not found
Cannot export weightfile: symbol not found
Cannot export weightsfilename: symbol not found
Cannot export xlgx: symbol not found
Cannot export xlogx: symbol not found
c:/rbuildtools/3.1/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `Rgreedy.o' is incompatible with i386 output
c:/rbuildtools/3.1/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `Roptimal.o' is incompatible with i386 output
Rgreedy.o: In function `xlogx':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:350: undefined reference to `log'
Rgreedy.o: In function `combine':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:360: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:359: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:365: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:363: undefined reference to `assert'
Rgreedy.o: In function `drawSTofchildren':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:431: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:415: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:420: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:421: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:423: undefined reference to `Rprintf'
Rgreedy.o: In function `drawSTrootedatonevertex':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:389: undefined reference to `Rprintf'
Rgreedy.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:383: more undefined references to `Rprintf' follow
Rgreedy.o: In function `Rgreedy':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:68: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:69: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:70: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:71: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:72: undefined reference to `malloc'
Rgreedy.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:73: more undefined references to `malloc' follow
Rgreedy.o: In function `Rgreedy':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:336: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:254: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:203: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:205: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:207: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Rgreedy.c:223: undefined reference to `malloc'
Roptimal.o: In function `ifloor':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:76: undefined reference to `floor'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:77: undefined reference to `assert'
Roptimal.o: In function `drawtreeandcomputeclusterweights':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:128: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:136: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:152: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:110: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:168: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:131: undefined reference to `assert'
Roptimal.o: In function `gg':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:187: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:186: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:184: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:185: undefined reference to `assert'
Roptimal.o: In function `xlgx':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:195: undefined reference to `log'
Roptimal.o: In function `comb':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:205: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:205: undefined reference to `log'
Roptimal.o: In function `mallocandcopytobestlist':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:250: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:251: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:248: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:246: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:247: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:252: undefined reference to `assert'
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:322: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:323: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:324: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:325: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:326: undefined reference to `malloc'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:327: more undefined references to `malloc' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:355: undefined reference to `_imp___iob_func'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:355: undefined reference to `setvbuf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:355: undefined reference to `setvbuf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:370: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:374: undefined reference to `srand48'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:387: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:395: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:401: undefined reference to `strcat'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:402: undefined reference to `strlen'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:403: undefined reference to `strcat'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:404: undefined reference to `strlen'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:405: undefined reference to `strcat'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:406: undefined reference to `strlen'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:417: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:418: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:419: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:420: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:421: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:422: undefined reference to `malloc'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:423: more undefined references to `malloc' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:439: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:443: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:446: undefined reference to `malloc'
Roptimal.o: In function `time':
c:/rbuildtools/3.1/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/time.h:233: undefined reference to `_imp__time64'
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:469: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:477: undefined reference to `log'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:477: undefined reference to `ceil'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:487: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:394: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:501: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:502: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:509: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:512: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:543: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:712: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:728: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:725: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:723: undefined reference to `assert'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:724: more undefined references to `assert' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:818: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:821: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:824: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:828: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:833: undefined reference to `malloc'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:862: more undefined references to `malloc' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:897: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:911: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:918: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:922: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:929: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:930: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:977: undefined reference to `malloc'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:980: more undefined references to `malloc' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1122: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1118: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1378: undefined reference to `exit'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1127: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1287: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1327: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1282: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1227: undefined reference to `assert'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1394: more undefined references to `assert' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:652: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:657: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:667: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:681: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1132: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:658: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:546: undefined reference to `assert'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:395: more undefined references to `assert' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1403: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1405: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1407: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1413: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1414: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:883: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:920: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:418: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:819: undefined reference to `assert'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:825: more undefined references to `assert' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1432: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1434: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1442: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1443: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1445: undefined reference to `free'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1447: more undefined references to `free' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1450: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1453: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1456: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1462: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1465: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1484: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1485: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1487: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1489: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1475: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1466: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1463: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1527: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1528: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1530: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1532: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1578: undefined reference to `free'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1578: more undefined references to `free' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1507: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1603: undefined reference to `malloc'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1607: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1611: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1620: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1622: undefined reference to `Rprintf'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1627: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1627: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1631: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1633: undefined reference to `free'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1636: undefined reference to `free'
Roptimal.o:C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1638: more undefined references to `free' follow
Roptimal.o: In function `Roptimal':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1603: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1563: undefined reference to `exit'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1408: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:1451: undefined reference to `assert'
Roptimal.o: In function `drawtreeandcomputeclusterweights':
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:172: undefined reference to `assert'
C:\Users\Kent.TLEAVELL_NT\Dropbox\development\r\summarytrees\src/Roptimal.c:118: undefined reference to `Rprintf'
collect2: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'summarytrees'
* removing 'C:/Program Files/R/R-3.1.2/library/summarytrees'
Error: Command failed (1)
kshirley commented 9 years ago

Ah, thanks for this. I've seen this error before. I just changed the random number generator from srand48() to srand(), which I think should work across platforms.

I'll test on windows sometime soon. Could you let me know if it installs properly on your windows machine now?

timelyportfolio commented 9 years ago

Ok, looks like that cleared up the errors on devtools::install. I'll check functionality in just a bit.