mpictor/StepClassLibrary — comment on commit 227fffd37eff9267fb78a0702173330c113f7ee2
File:  line 0
By mpictor:

I had un-commented the inline keyword in an earlier commit. It didn't cause problems before; I assume that's because the functions aren't used elsewhere.

With the keyword, I get

Linking CXX executable ../bin/p21read_sdai_ap203e2_mim_lf
CMakeFiles/p21read_sdai_ap203e2_mim_lf.dir/__/src/test/p21read/p21read.cc.o: In function `checkSchemaName(Registry&, STEPfile&)':
/opt/step/scl/src/test/p21read/p21read.cc:60: undefined reference to `Registry::ResetSchemas()'
/opt/step/scl/src/test/p21read/p21read.cc:66: undefined reference to `Registry::NextSchema()'
collect2: ld returned 1 exit status

I deduced that gcc expected inline functions to be in the header that was #included, and didn't put them in the library. I don't remember encountering that behavior previously, but I'm not sure what else could cause it.