Herzlich Willkommen, lieber Gast!
  Sie befinden sich hier:

  Forum » C / C++ (WinAPI, Konsole) » C++ compilin with MinGW and JCom

Forum | Hilfe | Team | Links | Impressum | > Suche < | Mitglieder | Registrieren | Einloggen
  Quicklinks: MSDN-Online || STL || clib Reference Grundlagen || Literatur || E-Books || Zubehör || > F.A.Q. < || Downloads   

Autor Thread - Seiten: > 1 <
000
26.04.2005, 09:58 Uhr
~Amaphisto
Gast


Hi all.

I've got an problem with C++ and JCom.

I want to compile an JCom - cpp file with MinGW C/C++ compiler.
In the first step of compiling i will get an *.obj file which will be after linking an *.dll file

My Problem is a failure by including the headerfiles.
here the commandlineerrors.

..\jcom\test>Cmingw\bin\g++ -ICj2sdk1.4.2_07\include\ IUnknown.cpp
In file included from atlbase.h:69,
from IUnknown.cpp:9:
atlconv.h: In function `OLECHAR* A2WBSTR(const CHAR*, int)':
atlconv.h:199: warning: passing NULL used for non-pointer converting 6 of `int MultiByteToWideChar(UINT, DWORD, const CHAR*, int, WCHAR*, int)'
In file included from IUnknown.cpp:9:
atlbase.h: At global scope:
atlbase.h:73: warning: malformed '#pragma pack(push[, id], <n>' - ignored
atlbase.h:79: warning: `selectany' attribute directive ignored
....
....

Maybe anyone could help me?
Thanks
Peter
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
001
26.04.2005, 13:43 Uhr
FloSoft
Medialer Over-Flow
(Administrator)


those messages are no errors, only warnings. I think you can ignore them
--
class God : public ChuckNorris { };
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
002
26.04.2005, 14:48 Uhr
~Amaphisto
Gast


hi.

thanks for your answer, and i'm sorry for posting a discarched code.
the warnings are repaired and the main errors (which i already meant last time) are the following:

filecode:
____________________________________
template <class T, const IID* piid = &__uuidof(T)>
____________________________________


the resultant errorcode:
____________________________________
In file included from IUnknown.cpp:9:
atlbase.h:568: error: expected primary-expression before ')' token
atlbase.h:568: error: there are no arguments to `__uuidof' that depend on a temp
late parameter, so a declaration of `__uuidof' must be available
atlbase.h:568: error: (if you use `-fpermissive', G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
atlbase.h: In member function `HRESULT ATL::CComQIPtr<T, piid>::CoCreateInstance
(const CLSID&, IUnknown*, DWORD)':
____________________________________




Thanks Peter
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
003
26.04.2005, 18:42 Uhr
FloSoft
Medialer Over-Flow
(Administrator)


it could be possible that your gcc version does not accept those template definitions, perhaps 0xdeadbeef or someone else can help you with it, I'm not very fit in templates and gcc
--
class God : public ChuckNorris { };
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
Seiten: > 1 <     [ C / C++ (WinAPI, Konsole) ]  


ThWBoard 2.73 FloSoft-Edition
© by Paul Baecher & Felix Gonschorek (www.thwboard.de)

Anpassungen des Forums
© by Flo-Soft (www.flo-soft.de)

Sie sind Besucher: