Question: I am trying to release my program as a *release* build. I switched to release mode and then my \*.h file broke.

```
#include "GL\glew.h"
#include "GLFW\glfw3.h"
#include "ft2build.h"
#include "FTGL\ftgl.h"

//#include "GL/glew.h"  
//#include <GLFW/glfw3.h> 
//#include <ft2build.h>
//#include <FTGL/ftgl.h>

```

The above I have included. Both sets result in the following error:

> 
> 1>C:\Users\student\Documents\VSTest\hw2\_hci\Release\hw2\_hci.exe :
>  fatal error LNK1120: 33 unresolved externals
> 
> 
> 

Now I come from a Java background, which is extremely easy to understand.

If I was to go for a a release version, where should my dll and other libraries (such as ftgl or glfw) be located, so that when I try this program out on any windows 7 machine it will work (excluding the c++ updates required etc. by the os).

Answer: 
You should config bind\_ip = 0.0.0.0 when start mongod
eg
mongod.conf as folowing

```
fork = true
bind_ip = 0.0.0.0
port = 27017
quiet = true
dbpath = /srv/mongodb
logpath = /var/log/mongodb/mongod.log
logappend = true
journal = true

```

and start mongo as this command

```
sudo mongod --config /etc/mongodb.conf

```

Now you can connect Mongo on Google cloud VM through external IP with 27017 as port.
I suggest that you check if your MongoDB is listening on port 27017 by running the following command:

```
sudo netstat -nap | grep 27017

```

I suggest also that you try to turn off your IP tables on the VM and try to access maybe a rule is blocking your access.
One thing also to check is your *bindIp* using *db.serverCmdLineOpts()*