Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

Sujet : utiliser une librairie faite pour du C dans du C++??? [ Archives / Divers ] (cartouh)

mardi 17 juin 2003 à 17:29:14 | utiliser une librairie faite pour du C dans du C++???

cartouh

Bonjour,
j'essaie d'utiliser la librairie CPDFLib (http://www.fastio.com/)
je l'ai compilé sous visual comme ils disent dans la doc, j'obtient un .lib
je l'inclue ainsi que le .h

mai sqd j'utilise une fonction de c'te librairie j'ai plein d'erreurs de liens ke voila:

LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrt.lib(MSVCRT.dll)
LIBCD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrt.lib(MSVCRT.dll)
LIBCD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in msvcrt.lib(MSVCRT.dll)
LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrt.lib(MSVCRT.dll)
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll)
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj)
LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrt.lib(MSVCRT.dll)
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16

bon, si j'utilise /nodedfaultlib, je me retrouve avec un (gros) tas d'erreurs!!!!

l'erreur de link 2005:
The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.


mais je ne sais pas...
je pense que c'est pas du multithreading mon appli (MFC) et la lib j'en sais rien....

comment faire?


une idée?

j'ai fé qque chose de pas bien?

a++ les gens...

mardi 17 juin 2003 à 17:34:48 | Re : utiliser une librairie faite pour du C dans du C++???

cartouh

ClibPDF is now thread-safe for use in multi-threaded applications.

bah, mon appli est single-threaded, comment la passer en multi-threaded??

ca doit etre ca le probleme...


a++ les gens...



-------------------------------
Réponse au message :
-------------------------------

> Bonjour,
> j'essaie d'utiliser la librairie CPDFLib (http://www.fastio.com/)
> je l'ai compilé sous visual comme ils disent dans la doc, j'obtient un .lib
> je l'inclue ainsi que le .h
>
> mai sqd j'utilise une fonction de c'te librairie j'ai plein d'erreurs de liens ke voila:
>
> LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
> LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrt.lib(MSVCRT.dll)
> LIBCD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrt.lib(MSVCRT.dll)
> LIBCD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in msvcrt.lib(MSVCRT.dll)
> LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrt.lib(MSVCRT.dll)
> LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll)
> LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll)
> LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj)
> LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj)
> LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj)
> LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj)
> LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrt.lib(MSVCRT.dll)
> LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
> LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
> LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
>
> bon, si j'utilise /nodedfaultlib, je me retrouve avec un (gros) tas d'erreurs!!!!
>
> l'erreur de link 2005:
> The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.
>
>
> mais je ne sais pas...
> je pense que c'est pas du multithreading mon appli (MFC) et la lib j'en sais rien....
>
> comment faire?
>
>
> une idée?
>
> j'ai fé qque chose de pas bien?
>
> a++ les gens...
>

mardi 17 juin 2003 à 23:08:46 | Re : utiliser une librairie faite pour du C dans du C++???

payen

sous VC++, dans les settings du projet : Alt+F7, onglet C/C++, Category : Code Generation, et puis Use Run Time Librairy pour changer ...



-------------------------------
Réponse au message :
-------------------------------

> ClibPDF is now thread-safe for use in multi-threaded applications.
>
> bah, mon appli est single-threaded, comment la passer en multi-threaded??
>
> ca doit etre ca le probleme...
>
>
> a++ les gens...
>
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Bonjour,
> > j'essaie d'utiliser la librairie CPDFLib (http://www.fastio.com/)
> > je l'ai compilé sous visual comme ils disent dans la doc, j'obtient un .lib
> > je l'inclue ainsi que le .h
> >
> > mai sqd j'utilise une fonction de c'te librairie j'ai plein d'erreurs de liens ke voila:
> >
> > LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
> > LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrt.lib(MSVCRT.dll)
> > LIBCD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrt.lib(MSVCRT.dll)
> > LIBCD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in msvcrt.lib(MSVCRT.dll)
> > LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrt.lib(MSVCRT.dll)
> > LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll)
> > LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll)
> > LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj)
> > LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj)
> > LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj)
> > LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj)
> > LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrt.lib(MSVCRT.dll)
> > LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
> > LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
> > LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
> >
> > bon, si j'utilise /nodedfaultlib, je me retrouve avec un (gros) tas d'erreurs!!!!
> >
> > l'erreur de link 2005:
> > The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.
> >
> >
> > mais je ne sais pas...
> > je pense que c'est pas du multithreading mon appli (MFC) et la lib j'en sais rien....
> >
> > comment faire?
> >
> >
> > une idée?
> >
> > j'ai fé qque chose de pas bien?
> >
> > a++ les gens...
> >
>

mercredi 18 juin 2003 à 10:13:46 | Re : utiliser une librairie faite pour du C dans du C++???

cartouh

ben non, mon appli est multi threaded DLL

et qd je passe en multithreaded ou single threaded j'ai ca:

C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
DeleteTagDlg.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
ParamDlg.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
ParamLecteursDlg.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
ReadTagDlg.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
SimpleApp.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
SimpleFrame.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
Error executing cl.exe.


je sais pas trop d'ou ca viens...
comme c'est une appli quie je modifie...
je ne sais pas trtop ce que le mec à fé avant!


a++ les gens...



-------------------------------
Réponse au message :
-------------------------------

> sous VC++, dans les settings du projet : Alt+F7, onglet C/C++, Category : Code Generation, et puis Use Run Time Librairy pour changer ...
>
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > ClibPDF is now thread-safe for use in multi-threaded applications.
> >
> > bah, mon appli est single-threaded, comment la passer en multi-threaded??
> >
> > ca doit etre ca le probleme...
> >
> >
> > a++ les gens...
> >
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Bonjour,
> > > j'essaie d'utiliser la librairie CPDFLib (http://www.fastio.com/)
> > > je l'ai compilé sous visual comme ils disent dans la doc, j'obtient un .lib
> > > je l'inclue ainsi que le .h
> > >
> > > mai sqd j'utilise une fonction de c'te librairie j'ai plein d'erreurs de liens ke voila:
> > >
> > > LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
> > > LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrt.lib(MSVCRT.dll)
> > > LIBCD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrt.lib(MSVCRT.dll)
> > > LIBCD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in msvcrt.lib(MSVCRT.dll)
> > > LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrt.lib(MSVCRT.dll)
> > > LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll)
> > > LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll)
> > > LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj)
> > > LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj)
> > > LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj)
> > > LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj)
> > > LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrt.lib(MSVCRT.dll)
> > > LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
> > > LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
> > > LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
> > >
> > > bon, si j'utilise /nodedfaultlib, je me retrouve avec un (gros) tas d'erreurs!!!!
> > >
> > > l'erreur de link 2005:
> > > The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.
> > >
> > >
> > > mais je ne sais pas...
> > > je pense que c'est pas du multithreading mon appli (MFC) et la lib j'en sais rien....
> > >
> > > comment faire?
> > >
> > >
> > > une idée?
> > >
> > > j'ai fé qque chose de pas bien?
> > >
> > > a++ les gens...
> > >
> >
>

mardi 17 août 2004 à 14:29:30 | Re : utiliser une librairie faite pour du C dans du C++???

gedge

Salut

J'ai le même problème que toi. Tu as trouvé une solution finalement ?

A+
Gérald



Cette discussion est classé dans : error, obj, lib, msvcrt, libcd


Répondre à ce message

Sujets en rapport avec ce message

So I need help again [ par lerilcy ] Je dois utiliser une CFile en Vc++6 et etrangement mon " #include "afx.h" " provoque une erreur lors du linkingVoici l'erreur:Compiling...file.cppLi (v6c++) - Le linking [ par lerilcy ] Je dois utiliser une CFile en Vc++6 et etrangement mon " #include "afx.h" " provoque une erreur lors du linkingVoici l'erreur:Compiling...file.cppLink pb de librairie [ par didrocks ] J'ai un problème lors de la complication de mon app en mode debug (et seulement en mode debug) avec vc++ 6.0:nafxcwd.lib(afxmem.obj) : error LNK2001: [Visual C++] Probleme de link d une dll avec code C et C++ [ par nebucad ] Bonjour tout le mondeJe suis sur un problème depuis quelques jours et j'en appelle donc à votre âme charitable pour régler ce problème que je rencontr [VC++6\wxWidgets] Problème à l'installation de v2.6.1 [ par Sunsawe ] Bonjour à tous. Je cherche donc à installer la dernière version à ce jour de wxWidgets avec VC++. Pour cela je suis le guide indiqué ici [url=http://w Problème de compilation [ par PunkDude424 ] Bonjour, j'ai un problème avec la compilation de projet sous visual studio 2003Mon problème est le suivant : J'ai téléchargé les librairies RTSP LiveM D'où vien l'erreur!!!? [ par mouminek ] Bonjour tout le monde, Je dois modifier dans un code ecrit en C++ dans VC++ 6.0. C'est un porogramme d'acquisition d'image utlisant un camera Apogee.. Probleme de librairie [ par KissyFroth ] J'ai un probleme avec une source que j'ai prise et que j'essaie vainement de compiler : Voilà l'erreur : nafxcwd.lib(afxmem.obj) : error LNK2005: "voi Problème avec MFC [ par DeadlyPredator ] Salut,Je souhaite compiler mon projet MFC en ligne de commande. Donc, j'ai créé la batch suivante :md Lolmidl /I".\Include" /newtlb /tlb ".\Lol\mcFirs [Visual C++ 6] Connecxion ODBC [ par kharrat ] Salut,Je travaille sous VC++ 6.J'essaie d'écrire un prog tout simple pour m'entraîner à utiliser des bases de données.Pour ce faire, je souhaite utili


Nos sponsors

Sondage...

CalendriCode

Juillet 2009
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
2728293031  

Consulter la suite du CalendriCode

Téléchargements

Logiciels à télécharger sur le même thème :

Comparez les prix Nouvelle version

Photothèque Nouveau !



Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,452 sec

Google Coop CodeS-SourceS Google Coop CodeS-SourceS


Certaines images présentes sur le site (notament certains avatars) sont issues des collections IconShock, donc si vous souhaitez utiliser ces icons vous devez les acheter, ne les copiez pas et ne utilisez pas dans vos sites et applications sans les avoir commandé.