Turns out it was a problem of passing correct parameters to the GCC compiler. Used this:
gcc -o output-file $(mysql_config --cflags)...
We have been developing a software (as a part of our senior project) that reads sensor values that Arduino puts on the serial line(ttymxc3)...
Try updating OneWire and DallasTemperature libraries to most recent one. That worked for us.
Separate names with a comma.