try adding -lstdc++
> -----Original Message-----
> From: j_north2002 [mailto:johnny_north@...]
> Sent: Tuesday, 1 October 2002 1:10 PM
> To: gbadev@yahoogroups.com
> Subject: [gbadev] c++ make file
>
>
> I'm trying to figure out the correct way to write a make for MSVC,
> but I keep getting the following:
>
> undefined reference to `__gccmain'
> undefined reference to `memset'
> undefined reference to `rand'
> undefined reference to `sprintf'
>
> jeff's FAQ suggests that I may not be linking libgcc correctly, but
> my linker options look like this:
>
> LDFLAGS = -L $(LIBDIR) -L $(LIBDIR2) -T LnkScript -lg -lc -lgcc
>
> can someone help me out here?
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Sell a Home for Top $
> http://us.click.yahoo.com/RrPZMC/jTmEAA/MVfIAA/cPRolB/TM
> --------------------------------------------------------------
> -------~->
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>