Sponsored Content
Top Forums Programming Errors while Compiling a PC script. Post 91358 by jim mcnamara on Thursday 1st of December 2005 11:02:01 AM
Old 12-01-2005
It's not a Pro*C problem. It's a linking problem. Since you are dealing with a lot of variables: complex make file, multiple source files, precompilers, etc - there are too many things to rule out for us to get a good solution

So, I'll make a simple suggestion that may not be the best solution but has the highest probability of working:

Somewhere near the top of your OrdItmpopulate.pc file (before you invoke "msg_open" or any of the other calls that are causing errors) put the following:
Code:
EXEC SQL INCLUDE exfcns.c;

NOTE: exfcns.c has to exist either in the current directory or in one of the directories specified to the proc (pro*C precompiler) command. The directories specified with -I
I would place exfcns.c in the current directory and add
Code:
 -I.

as another proc command line parameter.
 

10 More Discussions You Might Find Interesting

1. Programming

Compiling Errors -- Symbol referencing

I'm trying to compile a FTP_API program. To do this you must use the libftp.so libary. But that libary has references which are not defined. Has anyone had this problems and how is it corrected?? The command line looks like this:-------------------------------------------- # cc ftpstock.c -lftp... (5 Replies)
Discussion started by: spotanddot
5 Replies

2. UNIX for Dummies Questions & Answers

errors compiling gcc 4.2.1

Hello, I have never had a successful compile on the 2.6 kernel. On every arch in which I try to compile gcc I get either "i686-pc-cygwin-ar command not found or "i686-suse-linux-ar command not found. This always happens during the make process after configure checks for ar and finds it's just ar.... (2 Replies)
Discussion started by: kwa71
2 Replies

3. HP-UX

errors while compiling c++ module

hello everyone, here i attempting to compile a c++ module . I am using the following command make -d dummyCHARGP. i am using the gcc compiler .my os is HP-UX 11.11. here i am getting the following errors. errors: ======= /swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:146:... (1 Reply)
Discussion started by: mannam srinivas
1 Replies

4. Solaris

Errors compiling Bind

Hi all, Apologies if this is the wrong forum for this question, if it is, could some one point me to the right one please. I am trying to compile bind-9.5.1b1 on Solaris 10 Get the error when try to configure: checking for OpenSSL library... using OpenSSL from /usr/local/lib and... (5 Replies)
Discussion started by: callmebob
5 Replies

5. UNIX for Dummies Questions & Answers

Custom kernel compiling, won't boot, and errors.

First of all, I'd like to preface this post by relaying that I have considerable experience with FreeBSD but I'm a Linux newb. I've been attempting to compile linux-2.6.29.3 from source and I'm having some problems and have a few newb questions... a) First of all, my kernel won't boot, it fails... (0 Replies)
Discussion started by: urbanriot
0 Replies

6. Shell Programming and Scripting

Compiling Shell script

I want to compile a shell script so that anyone can run it on any linux platform without being able to view its content. Is there any way to do this? Thanks in advance ---------- Post updated at 12:00 PM ---------- Previous update was at 11:35 AM ---------- shc creates a stripped binary ... (2 Replies)
Discussion started by: proactiveaditya
2 Replies

7. Shell Programming and Scripting

Compiling to shell script

I have the following lines of script to run sequentially(i.e one after the other as arranged). how can I compile it to one shell script of the form DATABASE.sh awk '$2~/eaw/{BSC=$3}{print BSC,$0}' RXMOP.log | grep GSM | awk '{print $1,$2,$3,$5}'>TX.data sed 's/RXOTX/RXORX/g' TX.data>RX.data sed... (4 Replies)
Discussion started by: aydj
4 Replies

8. OS X (Apple)

FFMPEG install on 10.4.11, errors compiling and also using port

i've got an older white macbook running 10.4.11. about 5 years old i think. trying to install ffmpeg in 2 different ways. having errors on both. first tried this one: ffmpeg installation on Mac OSX and i got this error when i got down to "make" on the ffmpeg itself make(350) malloc: ***... (1 Reply)
Discussion started by: danpaluska
1 Replies

9. Shell Programming and Scripting

Need Help writing Bulk-Compiling Script

I'm trying to write a script that can compile my students' homework submissions in bulk. My students' c code is buried in a file path that looks like this: ./Homework\ X/Doe, John/Submission\ Attachments Where I'm struggling is determining how to navigate to each of the submission attachment... (11 Replies)
Discussion started by: GingerGiant
11 Replies

10. Red Hat

How to solve compiling handbrake errors?

Hello friends, Am trying to compile and build Handbrake 0.9.9 on my redhat box but getting the below errors. Same errors when I compile the source from github and also from the official web site. # uname -a Linux blah.com 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64... (0 Replies)
Discussion started by: prvnrk
0 Replies
Tcl_AsyncCreate(3)					      Tcl Library Procedures						Tcl_AsyncCreate(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_AsyncCreate, Tcl_AsyncMark, Tcl_AsyncInvoke, Tcl_AsyncDelete, Tcl_AsyncReady - handle asynchronous events SYNOPSIS
#include <tcl.h> Tcl_AsyncHandler Tcl_AsyncCreate(proc, clientData) Tcl_AsyncMark(async) int Tcl_AsyncInvoke(interp, code) Tcl_AsyncDelete(async) int Tcl_AsyncReady() ARGUMENTS
Tcl_AsyncProc *proc (in) Procedure to invoke to handle an asynchronous event. ClientData clientData (in) One-word value to pass to proc. Tcl_AsyncHandler async (in) Token for asynchronous event handler. Tcl_Interp *interp (in) Tcl interpreter in which command was being evaluated when handler was invoked, or NULL if handler was invoked when there was no interpreter active. int code (in) Completion code from command that just completed in interp, or 0 if interp is NULL. _________________________________________________________________ DESCRIPTION
These procedures provide a safe mechanism for dealing with asynchronous events such as signals. If an event such as a signal occurs while a Tcl script is being evaluated then it isn't safe to take any substantive action to process the event. For example, it isn't safe to evaluate a Tcl script since the interpreter may already be in the middle of evaluating a script; it may not even be safe to allocate mem- ory, since a memory allocation could have been in progress when the event occurred. The only safe approach is to set a flag indicating that the event occurred, then handle the event later when the world has returned to a clean state, such as after the current Tcl command completes. Tcl_AsyncCreate, Tcl_AsyncDelete, and Tcl_AsyncReady are thread sensitive. They access and/or set a thread-specific data structure in the event of an --enable-thread built core. The token created by Tcl_AsyncCreate contains the needed thread information it was called from so that calling Tcl_AsyncMark(token) will only yield the origin thread into the AsyncProc. Tcl_AsyncCreate creates an asynchronous handler and returns a token for it. The asynchronous handler must be created before any occur- rences of the asynchronous event that it is intended to handle (it is not safe to create a handler at the time of an event). When an asyn- chronous event occurs the code that detects the event (such as a signal handler) should call Tcl_AsyncMark with the token for the handler. Tcl_AsyncMark will mark the handler as ready to execute, but it will not invoke the handler immediately. Tcl will call the proc associated with the handler later, when the world is in a safe state, and proc can then carry out the actions associated with the asynchronous event. Proc should have arguments and result that match the type Tcl_AsyncProc: typedef int Tcl_AsyncProc( ClientData clientData, Tcl_Interp *interp, int code); The clientData will be the same as the clientData argument passed to Tcl_AsyncCreate when the handler was created. If proc is invoked just after a command has completed execution in an interpreter, then interp will identify the interpreter in which the command was evaluated and code will be the completion code returned by that command. The command's result will be present in the interpreter's result. When proc returns, whatever it leaves in the interpreter's result will be returned as the result of the command and the integer value returned by proc will be used as the new completion code for the command. It is also possible for proc to be invoked when no interpreter is active. This can happen, for example, if an asynchronous event occurs while the application is waiting for interactive input or an X event. In this case interp will be NULL and code will be 0, and the return value from proc will be ignored. The procedure Tcl_AsyncInvoke is called to invoke all of the handlers that are ready. The procedure Tcl_AsyncReady will return non-zero whenever any asynchronous handlers are ready; it can be checked to avoid calls to Tcl_AsyncInvoke when there are no ready handlers. Tcl calls Tcl_AsyncReady after each command is evaluated and calls Tcl_AsyncInvoke if needed. Applications may also call Tcl_AsyncInvoke at interesting times for that application. For example, Tcl's event handler calls Tcl_AsyncReady after each event and calls Tcl_AsyncInvoke if needed. The interp and code arguments to Tcl_AsyncInvoke have the same meaning as for proc: they identify the active interpreter, if any, and the completion code from the command that just completed. Tcl_AsyncDelete removes an asynchronous handler so that its proc will never be invoked again. A handler can be deleted even when ready, and it will still not be invoked. If multiple handlers become active at the same time, the handlers are invoked in the order they were created (oldest handler first). The code and the interpreter's result for later handlers reflect the values returned by earlier handlers, so that the most recently created handler has last say about the interpreter's result and completion code. If new handlers become ready while handlers are executing, Tcl_AsyncInvoke will invoke them all; at each point it invokes the highest-priority (oldest) ready handler, repeating this over and over until there are no longer any ready handlers. WARNING
It is almost always a bad idea for an asynchronous event handler to modify the interpreter's result or return a code different from its code argument. This sort of behavior can disrupt the execution of scripts in subtle ways and result in bugs that are extremely difficult to track down. If an asynchronous event handler needs to evaluate Tcl scripts then it should first save the interpreter's result plus the values of the variables errorInfo and errorCode (this can be done, for example, by storing them in dynamic strings). When the asynchronous handler is finished it should restore the interpreter's result, errorInfo, and errorCode, and return the code argument. KEYWORDS
asynchronous event, handler, signal Tcl 7.0 Tcl_AsyncCreate(3)
All times are GMT -4. The time now is 05:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy