468,513 Members | 962 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

revise the sequence class to use a dynamic array

11
Hi there,

I revised my sequence class, from the last homework to use a dynamic array to store items, i am getting an error and 4 warnings, i also provided my header file, as well as the implementation file, can someone please help me out hear, my brains are beyond fried now, highly appreciated

1>------ Build started: Project: Assignment3, Configuration: Debug Win32 ------
1>Compiling...
1>sequence2.cxx
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(32) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> c:\program files\microsoft visual studio 8\vc\include\xutility(2370) : see declaration of 'std::copy'
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(61) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> c:\program files\microsoft visual studio 8\vc\include\xutility(2370) : see declaration of 'std::copy'
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(99) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> c:\program files\microsoft visual studio 8\vc\include\xutility(2370) : see declaration of 'std::copy'
1>c:\users\mrahil\documents\visual studio 2005\projects\assignment3\assignment3\sequence2.cx x(207) : warning C4715: 'main_savitch_4::sequence::current' : not all control paths return a value
1>Linking...
1>LINK : fatal error LNK1561: entry point must be defined
1>Build log was saved at "file://c:\Users\Mrahil\Documents\Visual Studio 2005\Projects\Assignment3\Assignment3\Debug\BuildL og.htm"
1>Assignment3 - 1 error(s), 4 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Several hundred lines of code removed, read the guidelines
Mar 10 '08 #1
1 3362
Banfa
9,056 Expert Mod 8TB
The first 3 warnings are about functions Microsoft has decided to declare deprecated due to security issues and can probably be ignored for now (particularly if you want your code to be portable).

2005\projects\assignment3\assignment3\sequence2.cx x(207) : warning C4715: 'main_savitch_4::sequence::current' : not all control paths return a value

This warning is because main_savitch_4::sequence::current returns a value but somewhere in the code there is a path of execution of the function that does not return a value(I am surprised it is not an error). Check the function make sure that all return statements return a value and that it is not possible to get the end of the function with hitting a return statement.

1>LINK : fatal error LNK1561: entry point must be defined

The linker is complaining that the entry point (main normally) does not exist. Have you left a file out of your build? or accidentally made an edit in your entry point function name?
Mar 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Zac | last post: by
3 posts views Thread by john | last post: by
14 posts views Thread by pat270881 | last post: by
8 posts views Thread by =?ISO-8859-1?Q?Florian_B=FCrzle?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.