fork download
  1. a snippet of the make error buffer
  2.  
  3. .//libkout.a(field2d.o): In function `Field2D::getData(int, int, int, double*) const':
  4. field2d.cxx:(.text+0x1f7): undefined reference to `mesh'
  5. more errors like this follow
  6.  
  7. how do I compile?
  8. @$(CXX) $(KOUT_INCLUDE) $(BOUT_FLAGS) -c kout.cxx
  9.  
  10. how do I link?
  11. @$(LD) $(KOUT_INCLUDE) $(LDFLAGS) -o kout kout.o $(EXTRA_LIBS) -lkout -L./
  12.  
  13. where libkout.a should contain all the objects I need
  14. I can examine with ar -t libkout.a and verify that both field2d.o and mesh.o are there
  15.  
  16.  
  17. how do I create the library?
  18. I do "$> make lib" where in the makefile
  19.  
  20. DIRS =folder1 folder2 folder3
  21.  
  22. lib: $(DIRS)
  23.  
  24. $(DIRS):
  25. ar cru libkout.a $(MAIN_SRC)/$@/*.o
  26. ranlib libkout.a
  27.  
  28. you might be able to guess that I'm attemping to reuse some compiled objects from another project
  29.  
  30. any suggestions? not sure how to proceed
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4: error: stray ‘`’ in program
prog.cpp:4:56: warning: missing terminating ' character
prog.cpp:4: error: missing terminating ' character
prog.cpp:8: error: stray ‘@’ in program
prog.cpp:11: error: stray ‘@’ in program
prog.cpp:25: error: stray ‘@’ in program
prog.cpp:25:33: error: unterminated comment
prog.cpp:1: error: ‘a’ does not name a type
stdout
Standard output is empty