compiling with include & libs

I like to compile a cxx file with g++ compiler.

I tried with option
g++ -I<include path> -L<library path> source-file

but ending with compilation error in /usr/local/bin/gcc-lib/.../crt1.o

I think the libraries are not taken from proper path

How to compile a cxx file with libraries & include files

Thanks
ls1429

What is the exact compilation error you got ?

Best Wishes