|
|
Manish_mnp wrote: my problem is that i want to maintain list, but how can i do this?
Use list from the STL.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello everyone,
When building my project (Visual Studio 2005 DLL project for C++ Smart Device), there is link error,
error LNK2001: unresolved external symbol __security_check_cookie
I can solve this error by adding secchk.lib to link input import libraries.
My questions,
1. I am not using __security_check_cookie explicitly, why there is such error?
2. Is it correct to solve this issue by adding secchk.lib as linker input import libraries?
thanks in advance,
George
|
|
|
|
|
|
Hi Mike,
On Windows Pocket PC 2003 platform (Visual Studio 2005), there is no such 3 import library files,
bufferoverflowU.lib bufferoverflowK.lib bufferoverflow.lib
You can try to create a Pocket PC 2003 application project and add the 3 import libraries to linker --> input, then there will be error like the lib files can not be found.
regards,
George
|
|
|
|
|
See my answer to your same question here [^].
|
|
|
|
|
Thanks Alain,
I have tried but it does not work. Here is all the compiler options I used. Could you help to take a look to see if there are any other options trigger /GS please? If you need any further information to find the root cause, please feel free to let me know.
/Od /Os /I "..\include" /I /D "_DEBUG" /D "_WIN32_WCE=0x420" /D "UNDER_CE" /D "WIN32_PLATFORM_PSPC" /D "WINCE" /D "DEBUG" /D "_WINDOWS" /D "ARM" /D "_ARM_" /Gm /EHsc /MTd /GS- /fp:fast /GR- /Fo"Pocket PC 2003 (ARMV4)\Debug/" /Fd"Pocket PC 2003 (ARMV4)\Debug/vc80.pdb" /W3 /nologo /c /Zi /TP
regards,
George
|
|
|
|
|
Hello everyone,
If I change the entry point to main in linker --> advanced (default is empty). Then there will be an error box,
can not find MSVCR80D.dll. What is wrong with my code? (if I change the entry point of application from main to empty, there is no such error)
<br />
static int i = 100;<br />
<br />
int main(int argc, char** argv)<br />
{<br />
int j;<br />
<br />
return 0;<br />
}<br />
I am using Visual Studio 2005 console application project.
thanks in advance,
George
|
|
|
|
|
If you initialize j whats result?
|
|
|
|
|
Hi Hamid,
The same result. Can you reproduce?
regards,
George
|
|
|
|
|
And if you change if to other words you get this error(like Winmain) error LNK2001: unresolved external symbol __main
|
|
|
|
|
Thanks Hamid,
Could you post your code please?
regards,
George
|
|
|
|
|
Im using your code and I was using if main that you told and I got this error.
|
|
|
|
|
|
If I add any thing to entry point I cant compile your code else it doesnt any problem.(Visual sutdio2008)
|
|
|
|
|
Thanks Hamid,
If I add main to entry point, I can build, but when run it has errors.
regards,
George
|
|
|
|
|
But I get a linker error and I cant comnpile it.
|
|
|
|
|
Sorry, Hamid!
There is no link error for me and I can not reproduce it. I only have runtime error.
regards,
George
|
|
|
|
|
It was interest for me your question.
|
|
|
|
|
Thanks Hamid,
I like to discuss with you. But for this case, we'd better be able to reproduce the situation by others, right?
regards,
George
|
|
|
|
|
I never tested this problem previous I think I must tell you thanks for your help.
|
|
|
|
|
It is ok, Hamid!
We are helping each other.
regards,
George
|
|
|
|
|
By the way I have a different question did you study in psychology?
|
|
|
|
|
Hi,
I'm seeing a strange problem; I learned to program in C and compiled with gcc, and back when I used to use character arrays all the time, I always needed to free memory. For instance:
char *a = new char(100);
Before the function was out, I would need to free it:
free(a);
Now I'm working on an MFC app (using VC++ .NET 2005) and it seems to crash when I try to free the memory (in this same situation; where I've created a character array, used it, then need to delete it a few lines later). Is allocation handled differently with the newer C++ compilers?
Thanks!
KR
|
|
|
|
|
One point I can say is when using new , you use delete . And when using malloc , use free . What was the message when the application crashed?
|
|
|
|