Can anyone tell me what would be the cause of the error
/mysql_com.h:306:5: error: token @ is not valid in preprocessor expressions
while this mysql_com.h file does not contain any @. So how can I fix this error.
I think it's similar to the error when we open windows edited file in linux, then at that time ^V appers. But in this case @ is not anywhere in the file.
Looks like this sort of problem has been reported when a '.h.in' file is included at some point, instead of the usual '.h' header file (eg. this) - perhaps because of some missing files or misconfigured include paths?
As has been previously suggested, I'd try tracing things back through the definition of MYSQL_VERSION_ID
and double check that the correct .h files and include paths are present on your machine.