![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Sep 2008
Posts: 17
OS: Linux,Max,Windows
|
Issue with Windows dev setup .Net (2003)
Hi All,
I am newbie on Windows development environment.I am using existing framework which is a .sln file. I launch the project and have added some of my new header files and .cpp files.Now from an existing file I call my function.It is like this function1() //This was already there in the framework before. ** function2(); //This is a newly added function for which new .cpp and .h is added in the same project. } Compilation or linker error I don;t get.When I try to debug by attaching the process I am not able to hit the function function1() itself. But when I comment function2() and compile and build the binary which is called from function1() and try to debug I am able to debug correctly. Environment I am using is .Net (2003). I guess I am doing something very silly.Any help or suggestion would be of great help. Thanks in advance -R |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
OS: Vista, various linux distros
|
Re: Issue with Windows dev setup .Net (2003)
Hey, could you post the entirety of the code. I'm assuming that the framework defines the functions in a header or within a class definition or something similar and the missing defenitions cause the error.
Cheers, Jamey |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Sep 2008
Posts: 17
OS: Linux,Max,Windows
|
Re: Issue with Windows dev setup .Net (2003)
#include "darwin_header.h" got added in the code
function1() //this was there before ** function2(); //newly added } in darwin_header.h I have declared the function function2(); in darwin_header.cpp #include "darwin_header.h" function2() //Definition ** } When I try to debug I never get the hit in function1().But if I comment I am getting. Note if it is a simple function like printf() put inside function2() and I include <stdio.h> in top it works but if there are some placed in " " it doesn't work. Thanks -R |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
OS: Vista, various linux distros
|
Re: Issue with Windows dev setup .Net (2003)
Ah right, i think i get what's going on.
darwin_header.h contains a call to function 2 which is defined in darwinheader.cpp? Put simply i think this shouldn't work because the function is called before it is defined... You could put a prototype of the function in darwin_header.h so that the function is already there? If this is useless then i'll test it on my own system. Cheers, Jamey |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Sep 2008
Posts: 17
OS: Linux,Max,Windows
|
Re: Issue with Windows dev setup .Net (2003)
There are three files
Existing.cpp -> #include "darwin_header.h" function1() { function2(); //This is newly added } darwin_header.h void function2(); //prototype. darwin_header.cpp #include<darwin_header.h> void function2() { } |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Sep 2008
Posts: 17
OS: Linux,Max,Windows
|
Re: Issue with Windows dev setup .Net (2003)
File: Existing.cpp
#include <darwin_header.h> void function1() { function2() ; //defined in darwin_header.h } File: darwin_header.h declaration void function2(); File : darwin_header.cpp #include <darwin_header.h> void function2() { //function definition. } Now when I try to debug Existing.cpp, debugger is not able to understand any break point on the function function1().But if I comment function2() then I am able to debug function1(). Thanks in advance for all help. -R |
|
|
|
![]() |
| Thread Tools | |
|
|