Thread: [Dev-C++] Linking Issues In Dev C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Saikat K. <sx...@ho...> - 2002-11-07 22:19:36
|
Hello: I am sort of a newbie at using bloodshed dev-c++. I am writing a JNI application to interface with a c library (lets say the c library file is called foo.dll) inside Bloodshed Dev C++ . To do this I want to create a dll from a jni c file that in turn calls a function inside this foo.dll. I was wondering what I need to do in my project settings to link in this dll file , is it the -l or the -o option that is needed to link in a dll.. Thanks for your help SK _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus |
|
From: Carlos d. M. <cg...@wo...> - 2002-11-08 11:10:43
|
First of all, I'm not familiar with dlls. But dll is dynamic link library= , which means the linking takes place at run time, so you haven't to pass any opt= ion about it to the compiler. You only need: -Link to the import library, libfoo.a, if you make an implicit dll load. = This file has an EXPORT table for the functions and variables that will be exp= orted =66rom the dll. -Add the appropriate code to the sources for load it when needed and unlo= ad it when needed. Such LoadLibrary(hInstance, another parameter?s?) (see documentation and tutorials) and FreeLibrary(hInstance) and it will link = to it at run time. If explicit dll load. Saikat Kanjilal escribi=F3: > Hello: > I am sort of a newbie at using bloodshed dev-c++. > I am writing a JNI application to interface with a c library (lets say = the c > library file is called foo.dll) inside Bloodshed Dev C++ . To do this = I > want to create a dll from a jni c file that in turn calls a function in= side > this foo.dll. I was wondering what I need to do in my project settings= to > link in this dll file , is it the -l or the -o option that is needed to= link > in a dll.. > > Thanks for your help > SK > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=3Dfeatures/virus > > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Louis G. <lg...@ya...> - 2002-11-08 21:53:28
|
Carlos, Can you give the doc(s) or tutorial(s) that you mention in your note ? --- Carlos García del Monte <cg...@wo...> wrote: > First of all, I'm not familiar with dlls. But dll is dynamic link > library, which > means the linking takes place at run time, so you haven't to pass any > option > about it to the compiler. You only need: > -Link to the import library, libfoo.a, if you make an implicit dll load. > This > file has an EXPORT table for the functions and variables that will be > exported > from the dll. > -Add the appropriate code to the sources for load it when needed and > unload it > when needed. Such LoadLibrary(hInstance, another parameter?s?) (see > documentation and tutorials) and FreeLibrary(hInstance) and it will link > to it > at run time. If explicit dll load. > > Saikat Kanjilal escribió: > > > Hello: > > I am sort of a newbie at using bloodshed dev-c++. > > I am writing a JNI application to interface with a c library (lets say > the c > > library file is called foo.dll) inside Bloodshed Dev C++ . To do this > I > > want to create a dll from a jni c file that in turn calls a function > inside > > this foo.dll. I was wondering what I need to do in my project > settings to > > link in this dll file , is it the -l or the -o option that is needed > to link > > in a dll.. > > > > Thanks for your help > > SK > > > > _________________________________________________________________ > > MSN 8 with e-mail virus protection service: 2 months FREE* > > http://join.msn.com/?page=features/virus > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: See the NEW Palm > > Tungsten T handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 |
|
From: Carlos d. M. <cg...@wo...> - 2002-11-09 12:04:29
|
The documentation is that which comes with WIN32 API Programmer's reference (12MB download where I found it, but you can find it on-line at http://msdn.microsoft.com in the section library, which I think you go there adding /library to the url.). I can copy and paste and send you the page if you want. See ld or dllwrap or libtool documentation you can find at http://www.mingw.org in documentation section, add /docs.html, there is a little paragraph with an example of dll. There is a link to a page (http://mefriss1.swan.ac.uk/~jfonseca/gnu-win32/documentation/chm/index.html) where you can download it as a .chm file. There should be a link to some site where it's said something about this matter with gcc. You can reach it through the mumit khan's ports (ported software section), but I'm not sure and I have not it yet. I found a little tutorial at http://www.gamecoding.co.uk called memory management in dlls, it's useful, although not deep, there is a tip about make a dll for classes and portable (oh, yeah!), but I didn't achieve to make it work. Perhaps I'll send a couple of ideas about it to the list for a little of discussion. For more tuts or docs, search at altavista or google |
|
From: Tina <ti...@td...> - 2002-11-09 17:33:35
|
Hi Im new on the list, and in programming, i have tryed a tut but i can´t compile it, when i hit compile button, it just says no errors and no outputs. What do i do wrong? any ideas? Tina |