In regard to proper header order, there is none. I normally go like this:
1. Custom headers I have made.
2. Headers to libraries besides the standard C/C++ libraries.
3. Standard C++ Headers
4. C Headers
--
~~Scott Simontis~~
Programmer
>
>
> On Fri, 12 Dec 2003, Daniel Watson wrote:
>
> > I have included string.h and also checked Compiler Options->Linker->Do
> > not use standard system startup files or binaries as suggested on
> > another linker error posting.
>
> Uh? What post? If you check this, linker won't find anything of the
> standard library, including strcpy.
>
> > Any suggestions on what could be causing this? Is there a specific order
> > that the header files should be included? This is the order I have them
> > in. Is the string.h file included in one of the other header files.
>
> A _linker error_ depends from linker, headers are relative to compiler, so
> you'll better check the linker line to know what's going on (it writes
> the affected module or 'undefined reference', which means you haven't
> included in linking any library with that name, and this seems to be your
> situation).
>
> Bye.
>
> Ferdinando
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|