In which library can we find layout of IBM supplied Mq copybooks(like CMQV, CMQODV) in COBOL.
By compilation am able to see the expanded copybooks but would like to know the library.
You don't say which platform.
Windows: %MQ_INSTALLATION_PATH%\Tools\cobol\copybook
UNIX: $MQ_INSTALLATION_PATH/inc/
z/OS: hlq.SCSQCOBC
Related
I need to connect native java libraries for use in the ios environment. In particular, it is necessary to use ready-made support for crypto libraries.
I tried using ikvm(.net core xamarin) for ios. but there is no support for mono-touch.
See this answer from the knowledge base.
You can't use an arbitrary JAR "as is". Please also check the maven dependency discussion in this post.
You can wrap libraries as cn1libs but a library might use arbitrary Java code which might be a problem, see this.
I have downloaded FairPlay Streaming Server SDK, but it is written by C++, and I use golang as programming language, how can I integrate it?
Thanks for your help.
You would need to write a wrapper in C, from which you can call your C++ SDK.
(example here)
Then using cgo, you can compile, linking to your SDK library.
See a concrete example in "Linking Dynamic C++ Libraries with Go" from Brand Aaron Taylor
Specifying the location of this file requires custom flags for the compiler command.
With a bit of searching I was able to find the -L flag, which, similarly to the -I flag, specifies a search directory for the compilation process as a whole.
By specifying both Drafter’s build directory and dynamic library itself, we had a compiling C program!
gcc ctest.o -L./drafter/build/out/Release/ -ldrafter -o ctest
We have a software project which has the primary purpose of providing a library and API. We also provide example programs and utilities that use this library.
So, let's say that I have built and installed our library. When I run valgrind on one of the example / utility programs, I obviously see references to functions in the library. The issue is that it doesn't provide line numbers, and I would like it to.
Is there a way to tell Valgrind to reference source files that aren't obviously part of an executable, but are part of the source code for a library that is linked-in to the executable?
Thanks!
Make sure that you are compiling shared library with -g to add debug information. This should be enough for Valgrind to reference source files. See http://valgrind.org/docs/manual/faq.html#faq.unhelpful for more information.
How to setup ZeroMQ on Windows to work with OpenPGM?
I've done it. It wasn't as hard as I originally feared. Here's how I did it:
Download OpenPGM binaries from here: http://miru.hk/openpgm/
Download ZMQ source, either the tarball or from github
Open builds\msvc\msvc10.sln in Visual Studio
Select the WithOpenPGM configuration
Add appropriate OpenPGM directories to the additional Include directories
Add appropriate OpenPGM directories to additional library directories
Add appropriate OpenPGM .lib file to additional linker dependencies
Build and enjoy
if I remember correctly the snapshots are built with OpenPGM support: http://snapshot.zero.mq/
You first follow the OpenPGM guide: https://code.google.com/p/openpgm/wiki/OpenPgm5CReferenceBuildLibraryWindows then you make sure that the compilation process of zeromq can link that library...
It should be possible to get to work, however, this is possible it's not that easy:
https://zeromq.jira.com/browse/LIBZMQ-377
However, you can download a completely compiled binary with OpenPGM on Windows from here:
http://www.zeromq.org/distro:microsoft-windows
If I were in your shoes, I would set up OpenPGM on FreeBSD or Ubuntu and have a router process there that takes the messages from the Windows machine and multicasts them. That way, you have a much simpler problem to deal with on Windows, and you will be using one of the preferred platforms for OpenPGM
Almost all the code that you need to handle the routing scenario is already written for you in the 0MQ Guide.
I've been bundling JRE with my app by simply copying the files from $JAVA_HOME/jre to my app's distribution. This may be against the spirit of Java, but it reduces potential problems by ensuring that my app runs on a version of JRE that it was tested on (including the bitness; I use some JNI which requires that the JRE is a 32-bit version).
It works fine, but the whole distribution is somewhat big, so maybe some unnecessary files could be left out? Indeed, $JAVA_HOME/jre/README.txt contains the following advice:
The files that make up the Java SE Runtime Environment are divided into
two categories: required and optional. Optional files may be excluded
from redistributions of the Java SE Runtime Environment at the
vendor's discretion.
The following section contains a list of the files and directories that
may optionally be omitted from redistributions with the Java SE Runtime
Environment. All files not in these lists of optional files must be
included in redistributions of the runtime environment.
...When redistributing the JRE on Microsoft Windows as a private
application runtime (not accessible by other applications)
with a custom launcher, the following files are also
optional. These are libraries and executables that are used
for Java support in Internet Explorer and Mozilla family browsers;
these files are not needed in a private JRE redistribution.
What puzzles me is that the list of optional files includes, among others:
bin\java.exe
bin\javaw.exe
bin\javaws.exe
How can java/javaw.exe be optional? How am I supposed to start a Java application without them? Apparently I don't know something (likely), or the instructions are simply wrong.
When redistributing the JRE on Microsoft Windows as a private application runtime (not accessible by other applications) with a custom launcher, the following files are also optional.
If you embed the JVM (by linking against its shared libraries) in your own application, you do not need the standalone launcher executables. I think Eclipse works that way, for example.
If your app uses the java executable (via a batch file for example), then you need them, of course.
While this doesn't strictly relate to the question, for whole-program (or whole-platform) optimization of removing "un-needed code", I have found ProGuard to be a good tool. YMMV.