|
I'm getting some errors in VS2008 while they dont happen in VS 2006.
There are three projects
1. dll project
2. library project
3. exe project
Second(library) and third(exe) projects use some functions of first(dll) project. Second(Library)is also used by third(exe) project.
During building second(Library) project i dont need to include
first(dll) in project settings under additional dll option in linker because i include this dll(dllname.lib) in project settings of third(exe) project.
When i build first, second and third(exe) projects in VC6 they are builded successfully without any error.
While if i build them in VS 2008(vc9) first and second build successfully while third(exe)gives some errors "unresolved external symbols".
These are the errors of those function of first dll which are used in second(library) project. But since i have include this dll in project setting(under linker) in exe project so linker should search their definitions here. I'm surprised why it's happening. I have set the option enable incremental linking in project settings of second and third projects.
Please suggest any solution.
|
|
|
|
|
|
I have tried all options under linker settings but unable to solve the error. Please suggest which option you want to change
|
|
|
|
|
The linker errors state what symbols are unable to be resolved.
What are the errors?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
error is described below
error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator >>=(class MyNamespace::MyClass const &,char const * &)" (__imp_??_2@YA_NABVMyClass@MyNamespace@@AAPBD@Z)
fatal error LNK1120: 1 unresolved externals
In dll project, there is one namespace MyNamespace which contains a class MyClass and the definition for >>= operator.
Library project create object of MyNamespace::MyClass and use >>= operator.
|
|
|
|
|
MKC002 wrote: In dll project, there is one namespace MyNamespace which contains a class MyClass and the definition for >>= operator.
Are you exporting that class from the DLL so it can be imported
in the app build?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Hi Experts
I am reading a 7GB File line by line and i need to write some of it's contantants into two files of 9MB and 6MB in a function, for reading and writing i am using a while loop,but my application is not writing the complete OUT-PUT Files. it seems my application is not able to read the complete In-Put File.
My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk.
so can anybody tell me what could be the reason?
Thanks in advance
RYK
|
|
|
|
|
Take a look here
Thank you masters!
|
|
|
|
|
But Dear i m not using MFC or SDK
|
|
|
|
|
You are suggesting that he memory map a file... a file that is more than twice his available address space...?
Peace!
N.B. While we do have a 4GB address space on Win32, only 2-3GB of it can be considered available, and even that takes some doing...
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
VC_RYK wrote: it seems my application is not able to read the complete In-Put File.
My System has only 256MB of RAM and hardly 8 GB Free space in my Hard disk.
so can anybody tell me what could be the reason?
Are you storing anything other than the current line? If not, I can't imagine RAM or disk space having any relevancy.
Can you provide a code snippet that exhibits the problem?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I vaguely recall that ifstream doesn't work on files over 2GB. You could try the regular CRT buffered IO calls.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi Masters!
--------------
Somebody's asked me to introduce a tutorial on "memory management" in windows with a lot of images in it to
illustrate the contexts. any help?
Thank you masters!
|
|
|
|
|
so, now you need the content or the images?
by the way how about googling or using the search here on CP
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
As you do not know, there's thousands of them on the internet!
As every knows (but you!), I meant a good one!
Thank you masters!
|
|
|
|
|
Jusef Marzbany wrote: there's thousands of them on the internet!
I'd say that's a good thing.
|
|
|
|
|
so you cannot do your assignments yourself ?
you're a pity
|
|
|
|
|
Thanx 4 Ur .hlp
Thank you masters!
|
|
|
|
|
Your search is better than me.
|
|
|
|
|
Hi all,
How to create a C# control (using VC# 2008 .Net) which can be used in any language (mainly in VC++ 2008 .Net)?
Please guide me.
I appreciate any and all comments and suggestions.
Thanks in advance.
Regards,
Aniket A. Salunkhe
|
|
|
|
|
We discuss native programming here. You may want to ask this question in one of those managed code forums.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: in one of those managed code forums
You may add:" personally, I have nothing to do with such rubbish!" to express further your disgust.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Well put. Now there's someone who knows me better.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
You must be ask on the Managed C++/CLI[^] but why you dont want to use of c++ instead C#?
|
|
|
|