Question: Is it possible to compile a program on linux using a .dll file?  Where this is going: This .dll will be used to write a php extension to some proprietary software from a third party.  Background and Research:  I have been given a library called proprietary.lib.  I was curious, as I have never seen the .lib extension before, so I typed:  file proprietary.lib   The output was:  proprietary.lib:  current ar archive   I did some research and found that ar is more-or-less tar (and in fact, I guess tar has since replaced ar in most *nix environments).  Upon inspecting the ar manpage, I saw the t option, which displays a table listing of the contents of that archive.  Cool.  So I type:  ar t proprietary.lib   And get:  proprietary.dll proprietary.dll ... (snip X lines) ...
19774
We need to interface to 3rd party app, but company behind the app doesn't disclose message protocol and provides only Windows DLL to interface to. Our application is Linux-based so I cannot directly communicate with DLL. I couldn't find any existing solution so I'm considering writing socket-based bridge between Linux and Windows, however I'm sure it is not such a unique problem and somebody should have done it before. Are you aware of any solution that allows to call Windows DDL functions from C app on Linux? It can use Wine or separate Windows PC - doesn't matter. Many thanks in advance.
72798
How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code?  Presumably it would need to link to a Python runtime library, and any parts of the Python standard library which were Python themselves would need to be compiled (and linked in) too.  Also, you would need to bundle the Python interpreter if you wanted to do dynamic evaluation of expressions, but perhaps a subset of Python that didn't allow this would still be useful.  Would it provide any speed and/or memory usage advantages?  Presumably the startup time of the Python interpreter would be eliminated (although shared libraries would still need loading at startup).
99722
I've got a C++ program that uses SQLite. I want to store the SQL queries in a separate file -- a plain-text file, not a source code file -- but embed that file in the executable file like a resource.  (This has to run on Linux, so I can't store it as an actual resource as far as I know, though that would be perfect if it were for Windows.)  Is there any simple way to do it, or will it effectively require me to write my own resource system for Linux? (Easily possible, but it would take a lot longer.)
62977
There are lots of questions that come up when thinking about getting software productive.   Like how to do versioning of the software, how to deploy it on client side and generally how to roll software out.  Having done this multiple times in different ways, there are still lots of open questions.  If I ask them on stackoverflow, they will get closed with very high probability. They are not to programming related, I cannot provide code, they seem to be  ideally suited for "off topic".  So: Where can I ask those questions?  -edit-  To have more concrete example of the questions that I would like to ask:   What to consider before rolling software out? How to version a bunch of assemblies without having to edit lots of config files? How to keep software on client side up to date? ...   I would really appreciate to ask those questions myself, if there is a place for it somewhere. SO seems to be no match.
56888
As we know, any executable file, which is running, is loaded into RAM.  Also, we have two kinds of libs: static link library and dynamic link library.  The two kinds of libs should be loaded into RAM too while they are needed.  As I know, we have two ways to load the dynamic library:   link it while compiling, such as g++ -lsofile load dynamically in the code, we have dlopen to do this   I've post  but I can't still make sure that we could list all lib files. For the first case above, I think we can get the link file with ldd, or check /proc/{PID}/maps. But for the second case, I'm thinking if I can get the link files with some method, here is an example:  void SomeModule() {     //dlopen here to link mysofile }  int main() {     if (user_enter == 'a')     {         printf("hello world");     }     else     {         SomeModule();     } }   In this example, when we execute it and type always a, the dlopen will never be called, so mysofile will never be linked, which means that mysofile will never be loaded into RAM. Am I right?  If so, how can I get the necessary lib files of the executable file except reading the source code?
77038
There is an executable I want to install on a computer that I can't recompile that wasn't built as a package, and I want to download the libraries it requires to run them.  Below is part of the output from running ldd on it  libpango-1.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libpango-1.0.so.0 (0xb702f000) libcairo.so.2 =&gt; /usr/lib/i386-linux-gnu/libcairo.so.2 (0xb6f64000) libatk-1.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xb6f43000) libsqlite3.so.0 =&gt; /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb6e9e000) libc.so.6 =&gt; /lib/i386-linux-gnu/libc.so.6 (0xb6cf4000) /lib/ld-linux.so.2 (0xb786e000) libxcb.so.1 =&gt; /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb6cd3000) libgio-2.0.so.0 =&gt; /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xb6b7c000) libm.so.6 =&gt; /lib/i386-linux-gnu/libm.so.6 (0xb6b4f000)   Is there a tool that can use this information to select which packages should be downloaded or better yet extract only the libraries listed and their dependencies, in order to minimize the disk usage? The system is running on a headless VM and the program will be displayed via VNC.  Although I suspect that a full blown graphics desktop will supply most of the libraries needed I want to download only the required libraries, their dependencies and just enough of the X Windows package to support it.
95704
I noticed while answering another question that test and [ are different binaries, but the [ manpage pulls up test's. Besides the requirement for an ending ], is there any difference?  If not, why are they separate binaries instead of being symlinked? (They are also bash builtins, and bash doesn't show a difference either.)
14677
I would like to call python script files from my c++ program.   I am not sure that the people I will distribute to will have python installed.  Basically I'm looking for a .lib file that I can use that has an Apache like distribution license.
102995
I'm a long time Linux user for over 15 years but one thing I hate with a passion is the mandated directory structure. I don't like that /usr/bin is the dumping ground for binaries or libs in /usr/lib, /usr/lib32, /usr/libx32, /lib, /lib32 etc... Random stuff in /usr/share etc. It's dumb and confusing. But some like it and tastes differ.  I want a directory structure where each package is isolated. Imagine instead if the media player dragon had it's own structure:  /software/dragon /software/dragon/bin/x86/dragon /software/dragon/doc/README /software/dragon/doc/copyright /software/dragon/lib/x86/libdragon.so   Or:  /software/zlib/include/zlib.h /software/zlib/lib/1.2.8/x86/libz.so /software/zlib/lib/1.2.8/x64/libz.so /software/zlib/doc/examples/... /software/zlib/man/...   You get the point. What are my options? Is there any Linux distro that uses something like my scheme? Can some distro be modified to work like I want it (Gentoo??) or do I need LFS? Is there any prior art in this area? Like publications on if the scheme is feasible or unfeasible?  Not looking for OS X. :) But OS X-inspired is totally ok.  Edit: I have no idea how PATH, LD_LIBRARY_PATH and other environment variables that depend on a small set of paths should work out. I'm thinking that if I have the KDE editor  installed in /software/kate/bin/x86/bin/kate then I'm ok with having to type the full path to the binary to start it. How it should work for dynamic libraries and dlopen calls, I don't know but it can't be an unsolvable engineering problem.
36917
Why did MS originally make the decision to maintain these two separate core libs? Maybe they had some scalability issue in mind, but nowadays I never see an application, of any type, that doesn't need both. Does anyone have any inside information on this? It's not really important, but been on my mind for years.  PS. I know what's in the two libs, I know the difference - I'm a big fan of  :) Just wondering what practical use the separation of the two has.
42837
We have a couple of developers asking for allow_url_fopen to be enabled on our server. What's the norm these days and if libcurl is enabled is there really any good reason to allow?  Environment is: Windows 2003, PHP 5.2.6, FastCGI
62018
I'm contemplating writing a script that does this:   Goes through each file in /usr/lib Does a dpkg -s search on each file. Reports a list of "orphan" files not belonging to any .deb package.   The idea is that over time, I've installed a lot of make install software and I'd like to get a list of leftover files from manually installed software I've since deleted.
44627
Is there some chance to know how a binary was built, under Linux? (and or other Unix)  Compiler, version, time, flags etc...  I looked at readelf and couldn't find much, but there might be other ways at analyzing the binary code/section etc...  Anything you know how to extract?
8624
I don't know what the exact executable file extension is. Is it .deb or .tar.gz?
57300
Possible Duplicate:          There are several tarballs (e.g. Firefox, Eclipse, Zend Studio and ...) that have executable files in them, that we can extract and run. but this executable will be available only for the user that extracts it.  If we want to make it available for all users we should move it to some location like /usr/share, /usr/local/share/, /opt/, ... and give appropriate permissions, make an executable file in /usr/bin/ and so on...  I want to make a deb installer file that does them all! How to do it?
12029
What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?  On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain things.
78074
Alright, so I'm working on programming my own installer in C#, and what I'd like to do is something along the lines of put the files in the .exe, so I can do  File.Copy(file, filedir);  Or, if this isn't possible, is there another way of doing what I am attempting to do?