Re: [Boost-users] [Linker error] undefined reference to`boost::gregorian::greg_month::as_short_string() const'
I understand what you mean now. In that case you would need to pass the filter name into the DSO function as a parameter. So your DSO declaration would look like... SHADEOP_TABLE(shadeopname) = { { "float shadeopname_fs(float, string)", "", "" }, . . }; And the argv[] argument passed to the method would contain the filter name as it's second value, i.e. SHADEOP(shadeopname_fs) { float *result = (float *)argv[0]; float x = *(float *)argv[1]; STRING_DESC *filt = (STRING_DESC *)argv[1]; if(strcmp(filt->s, "box")==0) { /* Filter with a box filter */ . . . Hope this helps. Paul G Original Message: ----------------- From: Jeff Garland jeff@crystalclearsoftware.com Date: Tue, 21 Sep 2004 05:15:39 -0700 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Linker error] undefined reference to`boost::gregorian::greg_month::as_short_string() const' On Mon, 20 Sep 2004 20:33:51 -0700 (PDT), Zhoujie Mao wrote I'm going to presume the built library file libboost_date_time-gcc-1_31.a is in D:/boost/lib. Please double check that.
Below is part of my make file CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = OBJ = main.o $(RES) LINKOBJ = main.o $(RES) LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib" -L"D:/boost/lib/libboost_date_time-gcc-1_31.a" ^^^^^^^^^^^^ this looks wrong ^^^^^^^^^^^ change it to the following:
-lboost_date_time-gcc-1_31 so your LIBS line looks like: LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib" -lboost_date_time-gcc-1_31
I did include the libboost_date_time-gcc-1_31 but it did not work.
Well, not actually because the -L controls the search path and you can't point it directly to the library.... HTH, Jeff _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
participants (1)
-
aqsis@mail.tele2.co.uk