building boost python
after building the boost python library, i am trying to test the simple example provided at 
    http://wiki.python.org/moin/boost.python/SimpleExample

my precise build command is:
     
    g++ -I/usr/include/python2.7/ -I/usr/local/boost_1_50_0/ MAIN.cpp -o MAIN -L/usr/local/boost_1_50_0/stage/lib -lpython2.7 -lboost_python

The build error i get is:

        /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
        (.text+0x18): undefined reference to `main'
        collect2: ld returned 1 exit status

Thanks for responses,
building boost python
===

after building the boost python library, i am trying to test the simple example provided at 
    http://wiki.python.org/moin/boost.python/SimpleExample

my precise build command is:
     
    g++ -I/usr/include/python2.7/ -I/usr/local/boost_1_50_0/ MAIN.cpp -o MAIN -L/usr/local/boost_1_50_0/stage/lib -lpython2.7 -lboost_python

The build error i get is:

        /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
        (.text+0x18): undefined reference to `main'
        collect2: ld returned 1 exit status

Thanks for responses,