I have checked the IBM official site for ESQL/C programming guide. I didn't find exact commands to compile and run. Do I need to install any packages to run? Can anyone tell me the commands to run these in Ubuntu?
How can I compile & and run an ESQL/C program on Linux Platform?
1.8k Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in COMPILATION
- gcc static library compilation
- AngularJS directive within ng-if won't run
- How do I compile QScintilla and Eric6 on Linux?
- Troubleshoot slow compilation
- C ignoring incrementation
- Compiling or using RtMidi on Windows 7
- within a project can I compile a module and interactively load the compiled module within ghci?
- C++ / compilation of a program fatal error: QtGui/qwidget.h: No such file or directory
- What do I have to consider when putting all code in the header?
- how do i compile a file with plugin stuff?
- Error when compiling simple LLVM example with Mingw
- Ant debug and ant release failed
- Compilation failure in JNativeHook
- error: C1083: Cannot open include file: 'ui_MainWindow.h': No such file or directory, Qt Creator
- Netbeans not using available memory during compilation
Related Questions in INFORMIX
- Warnings in Informix database log
- How to release Informix lock from Java
- Informix - select from a temp table created in a 4gl with Interactive debugger?
- Informix throw internal error when creating new transaction in existing one
- How do I split a time range into days using stored procedure in informix 11.5?
- Informix PDO connection : Error SQLSTATE=HY000, SQLDriverConnect: -329 sqlerrm(systables)
- Informix database connection in Play framework
- What may cause connection to be null and How to reuse null reference object?
- SQL query if not null enter field value
- How to backup a single database residing in a dbspace in Informix?
- select for update in stored procedure (concurrently increment a field)
- Informix database issue: Changing the datatype format
- Unable to save dataframe on HDFS for Informix database
- Informix weekday calendar function not working
- SQL sum column in one table where value in another table is 'S'
Related Questions in EMBEDDED-SQL
- How embedded SQL program in C gets executed as in the backend?
- Error in Proc*C compilation
- Using Pro*C/C++, in C++ code, can define structure type outside Declare Section and declare the structure variable inside the Declare Section?
- SQL - Delete and subquery
- Program with embedded sql gives compilation error
- ESQL Return New ID After Insert
- Informix ESQL/C — How to initialize fields?
- Need help copying c-strings from embedded SQL fetch to another c-string in a separate struct
- How can I write a shell script program to go through all my esql files and then execute that file to create exe files
- How can I compile & and run an ESQL/C program on Linux Platform?
- How can I simply convert an ESQL/C file to a C file? (Embedded- SQL/C file to C file)?
- Oracle Pro*C for insert with a sub select query causing ORA-01403: no data found
- Oracle pro*c way to query DB for difference of array values and DB column values
- Ingres fetching select into SQLDA
- Storing Oracle DB table's ROWID as a character array
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
ESQL/C (Embedded SQL in C) uses C code for the bulk of the code, but uses special markers (either
$in Informix ESQL/C orEXEC SQLin both standard and Informix ESQL/C) to indicate where SQL statements need preprocessing to be converted into an appropriate series of C library function calls and C variable definitions, etc. Theesqlscript is the compiler that automatically converts Informix ESQL/C source into first C and then object code and an executable (under options that are mainly the same as the C compiler's options, most of which are passed to the C compiler unchanged).You need to have the Informix ClientSDK (CSDK) installed to be able to compile ESQL/C programs. That is installed by default when the server is installed, so the chances are you're OK if you're on a machine with a working Informix server on it (if it also has a working C compiler and development environment). It is also available as a separate standalone product which you could install if you don't have, and don't want, an Informix server on your machine. There are advantages for testing if the server is local (quicker access, and less danger of damaging production systems, amongst others).
Assuming you have got CSDK installed, you need to set the environment variable
INFORMIXDIRto point where the software is installed (unless you chose to install it in/usr/informixor create a symlink/usr/informixthat points to to where CSDK is installed). You'll also want to add$INFORMIXDIR/binto your PATH. You're now ready to compile:Compile
.ec(ESQL/C source) files to object with theesqlcommand:Add other C compiler options as needed. Note that
-gis intercepted by theesqlscript and you have to work hard to get it passed to the C compiler.Consider compiling
.c(C source) files that use an ESQL/C header with theesqlscript too. This will pass the correct directory for the headers to the C compiler automatically. More likely, you'll use:For linking, use the
esqlscript to do it. It will provide the correct libraries (and object files) to the compiler, which it will invoke as the linker:You can add other libraries and library directories as usual.
You have the program compiled; now you need to run it. The chances are that you won't find the libraries automatically. You will need to think about adding some directories to either
LD_LIBRARY_PATHor modify/etc/ld.so.confto pick up the extra directories, or create symlinks to the Informix libraries from a place that will be picked up automatically (e.g./usr/libor/usr/lib64, or perhaps/usr/local/lib) to where the libraries are installed.You need to add at minimum:
$INFORMIXDIR/lib$INFORMIXDIR/lib/esqlUnder some circumstances, you may need to add other library directories found under
$INFORMIXDIR/libas well, but usually not.You should then be able to run the program. Using
ldd programwill let you know when you've got the settings right.