Yes, I tried! My project consistst of the library and the main. I guess you didn't also remove the namespace from the class (library). Remove this too and it'll work. You have to remove 4 (or were it 5?) lines of code.
Morten.
Here is the proof: It works!
Wow! youre right!!! Then i removed ALL "namespace" definitions and references, it worked!
Sorry i didnt tested it shortly after your 2nd post. I was testing other things.
This help a lot. Finally were getting somewere
Now i just need to know why it cant find the references definitions then I use the namespace. I am making a program that uses lots of libraries, and I really want use namespaces.
Do static libraries accept namespaces?
Ps.: Please notify if I can remove the ZIP file again to save forum webspace...
sure
i already tested here
Could you post your project (source files+project file(s)) in a 7z format (www.7zip.org)? I will give it a try this evening.
The project is attached, with the namespaces. I simplified it at maximum, so it is much cleaner than the code i posted before. The file is very small, and i dont have the 7z, so i posted in zip. Hope you dont mind.
Just open the staticlib.workspace and build the console application project. The other project is the static library, it is already built.
[attachment deleted by admin]