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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile and Linker Problem 1

Status
Not open for further replies.

abombss

Programmer
Apr 13, 2000
51
US
I am trying to implement a doubly linked list, but I am having some problems in run time.&nbsp;&nbsp;The code is correct because it has worked before.&nbsp;&nbsp;It seems when I debug the project that when executing it skips lines.&nbsp;&nbsp;When I try to execute the new command to create a new node for the list, the program skips right over the line of code.&nbsp;&nbsp;If anyone has any answers please let me know.<br><br>Thanks in advance
 
Why don't you try to use the Link list utility that has already been available in Visual C++ or STL (Standard Template Library) instead?<br>
 
assuming a doubly linked list would be nothing more than<br>struct MyList<br>{<br>&nbsp;&nbsp;&nbsp;MyList *prev;<br>&nbsp;&nbsp;&nbsp;char mydata[25];<br>&nbsp;&nbsp;&nbsp;MyList *next;<br>}*headPtr, *currentPtr, *tailPtr;<br><br>I cant see how compiling a code where that could be a prob(or maybe you made a class to handle your linked list) also the reason I dont think he(qb18) doesnt want to use the built in one, is for either his learning experience, or the fact you have more control on how to manage the list, and what groups of data goes into them.<br><br>It would be more helpful though if he mentioned what version of VC++ he is using, what type of project, what errors(if any) are generated by the linker, and so on. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
Thank you for the help, but I got the program to work.&nbsp;&nbsp;For some reason when I was making changes to my program and executing it, the compiler did not rebuild my project.&nbsp;&nbsp;Usually it would for me.<br><br>Thanks for you suggestions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top