[odb-users] --odb-epilogue option

Christian Sell christian at gsvitec.com
Tue Dec 16 06:57:54 EST 2014


Hello,

 

I have an issue with the above option. We are trying to use it from within a
CMake script, using the following expression:

 

odb --std c++11 --database sqlite --cxx-suffix .cpp --hxx-suffix .h
--generate-query --generate-schema --odb-epilogue "#include
\"${pragmafile}\"" ${_file}

 

the pragma file seems to be read ok, as syntax errors inside the file are
flagged (e.g. as shown further below). However, I always get error messages
shown below, and no files are generated:

 

<odb-epilogue-1>:1:9: error: #include expects "FILENAME" or <FILENAME>

 

This error appears along with the one above when I change the valid name
"Camera" to invalid "Camera22"

 

camera_pragmas.h:6:27: error: unable to resolve type name 'Camera22' in db
pragma object

 

Any clues? I have tried all reasonable permutations on this, to no avail.

 

Regards,

Christian



More information about the odb-users mailing list