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
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
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
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
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
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
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
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
Hello all
is there any concept of DLL in UNIX if so mention
the name of the library linking dynamically
Raj
(1 Reply)
Discussion started by: rajashekaran
1 Replies
DESCRIPTION
The Mono runtime will load configuration data from the installation prefix /etc/mono/config file, the ~/.mono/config or from the file
pointed by the MONO_CONFIG environment variable.
For each assembly loaded a config file with the name: /path/to/the/assembly.exe.config is loaded as well as the ~/.mono/assemblies/ASSEM-
BLY/ASSEMBLY.EXT.config file.
This file controls the behavior of the runtime.
The file contains an XML-like file with various sections, all of them contained inside a section (It actually uses GMarkup to parse the
file).
This page describes the Unix-specific and Mono-specific extensions to the configuration file; For complete details, see the
http://www.mono-project.com/Config web page.
<dllmap> directive
You use the dllmap directive to map shared libraries referenced by P/Invoke in your assemblies to a different shared library.
This is typically used to map Windows libraries to Unix library names. The dllmap element takes two attributes:
dll This should be the same string used in the DllImport attribute, optionally prefixed with "i:" to indicate that the string must be
matched in a case-insensitive way
target This should be the name of the library where the function can be found: this name should be suitable for use with the platform
native shared library loading routines (dlopen etc.), so you may want to check the manpages for that, too.
<dllentry> directive
This directive can be used to map a specific dll/function pair to a different library and also a different function name. It should appear
inside a dllmap element with only the dll attribute specified.
The dllentry element takes 3 attributes:
dll This is the target library, where the function can be found.
name This is the name of the function as it appears in the metadata: it is the name of the P/Invoke method.
target This is the name of the function to lookup instead of the name specified in the P/Invoke method.
Mapping based on operating system and cpu
Both the dllmap and the dllentry elements allow the following two attributes which make it easy to use a single configuration file and sup-
port multiple operating systems and architectures with different mapping requirements:
os This is the name of the operating system for which the mapping should be applied. Allowed values are: linux, osx, solaris, freebsd,
openbsd, netbsd, windows, aix, hpux.
cpu This is the name of the architecture for which the mapping should be applied. Allowed values are: x86, x86-64, sparc, ppc, s390,
s390x, arm, mips, alpha, hppa, ia64.
wordsize
This is the size of registers on the target architecture, it can be either 32 or 64.
The attribute value for both attributes can be a comma-separated list of the allowed values. Additionally, the first character may be a '!'
to reverse the meaning. An attribute value of "!windows,osx", for example, would mean that the entry is considered on all operating sys-
tems, except on Windows and OS X. No spaces are allowed in any part of the value.
Note that later entries will override the entries defined earlier in the file.
EXAMPLES
The following example maps references to the `cygwin1.dll' shared library to the `libc.so.6' file.
<configuration>
<dllmap dll="i:cygwin1.dll" target="libc.so.6"/>
</configuration>
The library name in the DllImport attribute is allowed to be in any case variant, like the following examples:
[DllImport ("cygwin1.dll")]
[DllImport ("Cygwin1.dll")]
[DllImport ("cygwiN1.Dll")]
This one maps the following C# method:
[DllImport ("libc")]
static extern void somefunction ();
to differentfunction in libdifferent.so , but to the same function in the library libanother.so when running under the Solaris and FreeBSD
operating systems.
<configuration>
<dllmap dll="libc">
<dllentry dll="libdifferent.so" name="somefunction" target="differentfunction" />
<dllentry os="solaris,freebsd" dll="libanother.so" name="somefunction" target="differentfunction" />
</dllmap>
</configuration>
SEE ALSO
mono(1)
,
monodis(1)
,
mint(1)
Mono(Mono 1.0)