Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unresolved external substitute symbol (Microsoft Visual C++)

Status
Not open for further replies.

Amateur1

Programmer
Apr 18, 2000
2
US
When in the process of compiling a program, I am experiencing this error.&nbsp;&nbsp;I am pretty sure I am grabbing the right header records where the following values are specified.&nbsp;&nbsp;Am I missing a command or something?&nbsp;&nbsp;I need help.<br><br>Thanks.<br>Amateur1
 
Can you please elaborate a bit. because this error may come in different context. Please let us know when is it occurring<br>Thanx<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A>
 
This is part of the coding of the program I am compiling in which the GETCHE() has the error message.&nbsp;&nbsp;GETCHE() is defined in the header CONIO.H.&nbsp;&nbsp;Am I missing anything?&nbsp;&nbsp;Am I not linking right?<br><br>if( argc &lt; 2 )<br>{<br>&nbsp;printf(&quot;Usage: 400Up extension&quot;);<br>&nbsp;printf(&quot;\nie: 400Up 001\nPress Any Key to continue...&quot;);&nbsp;&nbsp;<br>&nbsp;getche();&nbsp;&nbsp;<br>&nbsp;return 1;<br>}<br>strcpy(outfile, &quot;I:\\QDLS\\UPLOAD\\ATTEND.&quot;);<br>strncpy( outfile+22, argv[1], strlen(argv[1]));<br><br><br><br>
 
It seems that your program is perfect. I 've checked in Windows. The code is given below.&nbsp;&nbsp;Actually getche() is windows compatible only. On which OS are you running the program. Please have a look over the code. Does it solve the problem?<br>Thanx<br>Siddhartha singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A><br><br><br>#include &lt;stdio.h&gt;<br>#include &lt;string.h&gt;<br>#include &lt;conio.h&gt;<br>int main(int argc, char** argv) {<br> char outfile[60] = &quot;\0&quot;;<br> if( argc &lt; 2 )<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br> printf(&quot;Usage: 400Up extension&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;\nie: 400Up 001\nPress Any Key to continue...&quot;);&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getche();&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;strcpy(outfile, &quot;I:\\QDLS\\UPLOAD\\ATTEND.&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;strncpy( outfile+22, argv[1], strlen(argv[1]));<br>return 0;<br>}<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top