Revision 1214

trunk/contrib/gdbprintlib/gdbprintlib.h (revision 1214)
63 63

  
64 64
void pad(const dmatrix & v);
65 65

  
66
void pad(const dfsdmat & v);
67

  
66 68
void pad(const imatrix & v);
67 69
void pad(const imatrix & v,int i);
68 70
void pad(const imatrix & v,int i,int j);
trunk/contrib/gdbprintlib/gdbprintlib.cpp (revision 1214)
431 431
}
432 432

  
433 433
/**
434
* Print a dfsdmat (a matrix) to the screen
435
* @param v The dfsdmat to print
436
* @return Nothing
437
**/
438
void pad(const dfsdmat & v)
439
{
440
  // Problem here with cout! 
441
  //cout << v << endl;
442
}
443

  
444
/**
434 445
* Print a imatrix to the screen
435 446
* @param v The imatrix to print
436 447
* @return Nothing
trunk/scripts/admb/adcomp (revision 1214)
27 27

  
28 28
# Pop args until model=$1
29 29
unset dll
30
unset fpic
30 31
opt=-DSAFE_ALL
31 32
while getopts "dgrs" A; do
32 33
  case $A in
33
    d) dll=-DBUILDING_DLL;;
34
    d) dll=-DBUILDING_DLL; fpic=-fPIC;;
34 35
    g) sym=-g;;
35 36
    r) ;;
36 37
    s) opt=-DSAFE_ALL;;
......
54 55
#  CXXFLAGS="$CXXFLAGS -Wno-deprecated"
55 56
#fi
56 57

  
57
CXXFLAGS="$CXXFLAGS -D__GNUDOS__ $dll -Dlinux $opt -DUSE_LAPLACE -I. -I\"$ADMB_HOME\"/include -I\"$ADMB_HOME\"/contrib/include"
58
CXXFLAGS="$CXXFLAGS -D__GNUDOS__ $dll $fpic -Dlinux $opt -DUSE_LAPLACE -I. -I\"$ADMB_HOME\"/include -I\"$ADMB_HOME\"/contrib/include"
58 59

  
59 60
CMD="$CXX $CXXFLAGS $file"
60 61
echo $CMD
trunk/src/GNUmakefile (revision 1214)
45 45
CXXFLAGS_PRE:=$(CXXFLAGS_PRE) -Wall
46 46
endif
47 47

  
48
CXXFLAGS_DEFINES:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE
48
CXXFLAGS_DEFINES:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE -fPIC
49 49

  
50 50
ifeq ($(TERMINAL),dos)
51 51
CXXFLAGS_INCLUDES:=-I..\build\dist\include
trunk/src/linad99/dfsdmat.cpp (revision 1214)
293 293
 */
294 294
uostream& operator<<(const uostream& ofs, const dfsdmat& m)
295 295
{
296

  
296 297
  double * p=((dfsdmat&)m).getminp();
297 298
  int nn=((dfsdmat&)m).size();
298 299
  nn=(nn*(nn+1))/2;
......
300 301
  {
301 302
    (uostream&)ofs << *p++;
302 303
  }
304

  
303 305
  return (uostream&)ofs;
304 306
}
305 307

  

Also available in: Unified diff