Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: !declared to have 'C' linkage Pin
Mark Salsbery6-Jul-07 13:44
Mark Salsbery6-Jul-07 13:44 
QuestionRe: !declared to have 'C' linkage Pin
abbd6-Jul-07 14:59
abbd6-Jul-07 14:59 
AnswerRe: !declared to have 'C' linkage Pin
Mark Salsbery6-Jul-07 15:06
Mark Salsbery6-Jul-07 15:06 
AnswerRe: !declared to have 'C' linkage Pin
fefe.wyx6-Jul-07 14:55
fefe.wyx6-Jul-07 14:55 
QuestionRe: !declared to have 'C' linkage Pin
abbd6-Jul-07 15:26
abbd6-Jul-07 15:26 
AnswerRe: !declared to have 'C' linkage Pin
Mark Salsbery6-Jul-07 15:57
Mark Salsbery6-Jul-07 15:57 
QuestionGdiplus: HICON to PNG in memory Pin
sLaKr6-Jul-07 10:36
sLaKr6-Jul-07 10:36 
GeneralProblem_With_MSVC6_Linker Pin
KEL36-Jul-07 9:41
KEL36-Jul-07 9:41 
Hello,

I have written a mathematical matrix class
for VS C++ 6 and I would like to publish it
in your site in the form of a library (*.lib).
Maybe later I release the code too.

However I am facing serious problems with my linker
an I 'm not sure if I will ever manage to publish it (at least in
a reasonable amount of time) without your help. So,
I would like to ask you if you could help me a bit.
I am willing to refer your name in my article.
Although, it may take me some time to write it.

As far as I have understood, it is the MFC (used by my
class) that conflicts when I try to use my compiled
*.lib file. I tried to change the settings of my linker
(/NODEFAULTLIB) but I do not find the process familiar!

I have uploaded the *.lib file and the header file so that
you can test it on your own. It is at:

http://rapidshare.com/files/41398859/LIB.zip[^]

The process of compiling it into a LIB file seems to be OK.
I will sum it up if you want:

I added my header file and my cpp file into the project
(Win32 Static Library) and I just built the lib files
with no errors.
Then I created a new MFC app (Dialog, MFC statically linked -
I don't know if that matters), I added the header file and the
lib files into the project, I added the

#ifdef _DEBUG
#pragma comment(lib, "mat_lib_DEBUG.lib")
#else
#pragma comment(lib, "mat_lib_RELEASE.lib")
#endif

in the code file using my class. But it just does't work.
If you manage to compile a project while using an object
please upload the project, so that I can see what I was
doing wrong. If you wan't you may write sth here too.

To use an object of the class write:

CKelLib::CKelMatrix m,n(2,1);
double p[4][4]={{1,2,3,4},{3,6,9.2,12.9},{7,14,21,27},{3,4,9,12.3}};
m.Initialize((double*)p,4,4);


Any kind of help would be appreciated.
Thank you.


kostas KEL

GeneralRe: Problem_With_MSVC6_Linker Pin
Chris Losinger6-Jul-07 9:46
professionalChris Losinger6-Jul-07 9:46 
GeneralRe: Problem_With_MSVC6_Linker Pin
KEL36-Jul-07 10:36
KEL36-Jul-07 10:36 
QuestionRe: Problem_With_MSVC6_Linker Pin
David Crow6-Jul-07 10:39
David Crow6-Jul-07 10:39 
GeneralRe: Problem_With_MSVC6_Linker Pin
KEL36-Jul-07 10:49
KEL36-Jul-07 10:49 
QuestionRe: Problem_With_MSVC6_Linker Pin
David Crow6-Jul-07 10:56
David Crow6-Jul-07 10:56 
GeneralRe: Problem_With_MSVC6_Linker Pin
KEL36-Jul-07 11:06
KEL36-Jul-07 11:06 
GeneralRe: Problem_With_MSVC6_Linker Pin
Bogdan Apostol8-Jul-07 2:18
Bogdan Apostol8-Jul-07 2:18 
GeneralRe: Problem_With_MSVC6_Linker Pin
KEL310-Jul-07 7:57
KEL310-Jul-07 7:57 
AnswerRe: Problem_With_MSVC6_Linker Pin
Bogdan Apostol10-Jul-07 9:34
Bogdan Apostol10-Jul-07 9:34 
Questionhow to delay in the middle of the code without cpu usage Pin
V_shr6-Jul-07 4:32
V_shr6-Jul-07 4:32 
AnswerRe: how to delay in the middle of the code without cpu usage Pin
Chris Losinger6-Jul-07 4:53
professionalChris Losinger6-Jul-07 4:53 
GeneralRe: how to delay in the middle of the code without cpu usage Pin
V_shr6-Jul-07 5:23
V_shr6-Jul-07 5:23 
AnswerRe: how to delay in the middle of the code without cpu usage Pin
Rage6-Jul-07 5:12
professionalRage6-Jul-07 5:12 
GeneralRe: how to delay in the middle of the code without cpu usage Pin
V_shr6-Jul-07 5:39
V_shr6-Jul-07 5:39 
Questionhow to print application memory Pin
zecodela6-Jul-07 4:23
zecodela6-Jul-07 4:23 
AnswerRe: how to print application memory Pin
Mark Salsbery6-Jul-07 5:39
Mark Salsbery6-Jul-07 5:39 
QuestionRe: how to print application memory Pin
zecodela6-Jul-07 15:16
zecodela6-Jul-07 15:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.