@jschen3 could you please clarify what you mean by "query.c will make a series of comments on each table, you should run query.c first`. Do you mean that I need to first change the database settings (host, username, password), second compile query.c (if so, how?) and then execute the resulting output file?. Would it look something like:

```
## first edit settings in query.c and querymaketables.cpp
gcc query.c  `mysql_config --cflags --libs` -o -o query
./query
 g++ querymaketables.cpp `mysql_config --cflags --libs` -o querymaketables
./querymaketables
```

I am getting a segmentation fault when running `./querymaketables`. Any ideas?

What are the settings required to compile gcc? Am I missing something?