create a .dll using cygwin and a .lib


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting create a .dll using cygwin and a .lib
# 1  
Old 04-08-2007
create a .dll using cygwin and a .lib

Hi,

I inherited a .lib file that I need to use to make a .dll file from a c++ file. I am able to do this in visual studio but I can not do this using cygwin. I would like to build the dll using the commandline in order to create a make file. Can someone help me. I would really appreciate it.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Create User in Cygwin??

Hi , In Unix we have the command , "useradd" command ==> To create New user and "groupadd" ==> To add New group & Updates to /etc/group and /etc/passwd files will happen automatically. How will i do the same in UNIX like environment in Windows (In Cygwin Bash promt).... (1 Reply)
Discussion started by: rubi
1 Replies

2. UNIX for Advanced & Expert Users

Regarding DLL's

hello Forum members, what is internal mechanism of DLL's in Unix kernal.what is the major advantage over static libraries. Thanks & Regards Siva Ranganath (2 Replies)
Discussion started by: workforsiva
2 Replies

3. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

4. Homework & Coursework Questions

How to create a dictionary using cygwin

1. The problem statement, all variables and given/known data: Create a dictionary using cygwin. Display the following menu at the start of execution 1-add a word in the dictionary # specify the meaning 2-search a word # if word exists, show the meaning of the word 2-delete a word... (2 Replies)
Discussion started by: kpopfreakghecky
2 Replies

5. Programming

Can I create a shared object by using an static lib?

for example, I have a static lib name liba.a it offers some interface such a1();a2(); but i do not have the source code of liba.a; If i would like to create a shared object, and offer the similar interface of a1 and a2; Is there a way to fulfill such requirement? thanks. (7 Replies)
Discussion started by: flost
7 Replies

6. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

7. Programming

Create a lib from a c program

I have a function in a c program that I want to to share with other programs. How do I create a lib using the cc compiler ? (9 Replies)
Discussion started by: npires
9 Replies

8. Programming

How to link lib or Dll using gcc

I had this lib which I don't have access to the source code and is created by micosoft Visual C++ compiler ...... Right now I want to reuse this lib as part of my new project which only has gcc as the only compiler... I had the problem that the lib won't link to my other c code... my... (2 Replies)
Discussion started by: yuwang
2 Replies

9. Programming

How to create .SO file (DLL)

HI, i want to create shared object file (that is .SO file it is similar to DLL in windows)...... Sarwan (3 Replies)
Discussion started by: sarwan
3 Replies

10. Programming

Dll

Hello all is there any concept of DLL in UNIX if so mention the name of the library linking dynamically Bye Raj (1 Reply)
Discussion started by: rajashekaran
1 Replies
Login or Register to Ask a Question
sane-dll(5)							File Formats Manual						       sane-dll(5)

NAME
sane-dll - SANE dynamic backend loader DESCRIPTION
The sane-dll library implements a SANE (Scanner Access Now Easy) backend that provides access to an arbitrary number of other SANE back- ends. These backends may either be pre-loaded at the time the sane-dll library is built or, on systems that support dynamic loading of shared libraries, the backends may be loaded at runtime. In the latter case, adding support for a new backend simply involves installing the relevant library in /usr/lib/sane and adding an entry to the dll.conf configuration file. In other words, no applications need to be modified or recompiled to add support for new devices. DEVICE NAMES
This backend expects device names of the form: backend:device Where backend is the name of the backend and device is the name of the device in this backend that should be addressed. If the device name does not contain a colon (:), then the entire string is treated as the device string for the default backend. The default backend is the backend listed last in the configuration file (see below) or the first pre-loaded backend (if any). CONFIGURATION
The contents of the dll.conf file is a list of backend names that may be loaded dynamically upon demand. Empty lines and lines starting with a hash mark (#) are ignored. A sample configuration file is shown below: net # this is a comment pnm mustek Note that backends that were pre-loaded when building this library do not have to be listed in this configuration file. That is, if a backend was preloaded, then that backend will always be present, regardless of whether it's listed in the configuration file or not. The list of preloaded backends is determined by macro PRELOADABLE_BACKENDS in file backend/Makefile.in of the SANE source code distribu- tion. After changing the value of this macro, it is necessary to reconfigure, rebuild, and reinstall SANE for the change to take effect. Aliases are defined in the config file dll.aliases. It can contain entries of the form alias SomeName SaneDeviceName alias "Some Name" SaneDeviceName hide SaneDeviceName For example: alias Epson net:somehost:epson:/dev/sgX alias "Siemens ST400" st400:/dev/sgY hide net:somehost:pnm:0 hide net:somehost:pnm:1 alias "Read from file" pnm:0 hide pnm:1 Aliased device names are automatically hidden. The idea is that users don't have to deal with complicated device names (especially for networked devices), and to hide other exported devices which might confuse them. Note that a hidden device can still be accessed if the device name is known, it just doesn't appear on the list. FILES
/etc/sane.d/dll.aliases The list of aliased or hidden backends. /etc/sane.d/dll.conf The backend configuration file (see also description of SANE_CONFIG_DIR below). /usr/lib/sane/libsane-dll.a The static library implementing this backend. /usr/lib/sane/libsane-dll.so The shared library implementing this backend (present on systems that support dynamic loading). ENVIRONMENT
SANE_CONFIG_DIR This environment variable specifies the list of directories that may contain the configuration file. Under UNIX, the directories are separated by a colon (`:'), under OS/2, they are separated by a semi-colon (`;'). If this variable is not set, the configura- tion file is searched in two default directories: first, the current working directory (".") and then in /etc/sane.d. If the value of the environment variable ends with the directory separator character, then the default directories are searched after the explic- itly specified directories. For example, setting SANE_CONFIG_DIR to "/tmp/config:" would result in directories "tmp/config", ".", and "/etc/sane.d" being searched (in this order). SANE_DEBUG_DLL If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of 128 requests all debug output to be printed. Smaller levels reduce verbosity. Value Descsription 0 print severe errors only 1 print normal errors and important messages 2 print normal messages 3 print debugging messages 4 print everything Example: export SANE_DEBUG_DLL=3 SEE ALSO
sane(7), scanimage(1), sane-"backendname"(5) AUTHOR
David Mosberger 11 Nov 2001 sane-dll(5)