Hi,
I just started to use PSOPT and so far only manipulated the *.cxx file in the "user" example. My problem gets solved nicely.
Then I tried to set up a stand alone project (with its own dir) by, first, simply copying the user folder (to user2 for example), adding
user2:
(cd $(EXAMPLESDIR)/$@; make $@)
to the makefile and execute "make user2". The makefile in the example dir looks as follows:
include ../Makefile_linux.inc
USER2 = user2 $(SNOPT_WRAPPER)
USER2_O = $(USER2:%=$(EXAMPLESDIR)/%.o)
user2: $(USER2_O) $(PSOPT_LIBS) $(DMATRIX_LIBS) $(SPARSE_LIBS)
$(CXX) $(CXXFLAGS) $^ -o $@ -L$(LIBDIR) $(ALL_LIBRARIES) $(LDFLAGS)
rm -f *.o
This does not work though. I get lots of undefined references:
undefined reference to `adouble::adouble(adouble const&)' etc.
So I guess I did not link correctly.
So my question is:
Question: How do I add/link a new problem to PSOPT?
(Please excuse my very basic question. I am not using compiled languages very much these days, except under the hood.)
Best, –Knut.