hey guys,

i have a problem, i can't figure it out. i'm not that familliar with g++, and ive been mulling around trying to figure this out, but i cant

i have a directory, with

/lib
/includes
main.cpp

i'm tring to compile main.cpp including the files in /includes, and also the libraries in /lib
The library are .so (shared object?)
Here's my command line so far:

g++ -I/path/to/includes -L/path/to/lib -llibldapsdk -llibldapssl main.cpp -o ldap_auth

It says it cant find <ldap.h> or <ldap_ssl.h>, when they're in the /includes folder, and it gives cannot find the libraries, theyre in.so

help!
Thanks