Hi Olivier! Seems like you are right about that. I was under the impression that I would not have to do anything special to use the C libraries in C++, but seems that some externs are needed. Do you think putting the '#include <oauth.h>' inside 'extern "C" {}' would solve the problem? Need I do more?
2010/5/27 Olivier Berger <olivier.ber...@it-sudparis.eu> > Hi. > > Le mercredi 26 mai 2010 à 15:00 -0700, elysion a écrit : > > Hi! > > > > In the source file I have included the sources in oauthexample.c. When > > I try to compile the project with "qmake && make", I get the following > > error from the linker: > > > > g++ -c -pipe -O2 -I/usr/local/include -Wall -W -D_REENTRANT - > > DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB - > > DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/ > > QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/ > > include/qt4/QtXml -I/usr/include/qt4 -I. -I. -o moc_mainwindow.o > > moc_mainwindow.cpp > > I'm not sure, but looks like you're trying to mix C and C++ which may > require some additional cautions ? > > It's been a long time I haven't touched C++ so maybe I'm completely OT, > though. > > Just my 2 cents, > -- > Olivier BERGER <olivier.ber...@it-sudparis.eu> > http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 > Ingénieur Recherche - Dept INF > Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France) > > -- > You received this message because you are subscribed to the Google Groups > "OAuth" group. > To post to this group, send email to oa...@googlegroups.com. > To unsubscribe from this group, send email to > oauth+unsubscr...@googlegroups.com <oauth%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/oauth?hl=en. > > -- You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to oa...@googlegroups.com. To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/oauth?hl=en.