Does anyone know why the code below compiles ok on v4r2 but does not compile on v5r1? The error msg is below the code.
It seems to require a USING clause now, when before it did not. BTW, the last else stmt passes compile, ie, you can connect without a user or pw, so the security reason does...
I seem to remember a Unix command that has an executable file as its one argument. The command displays all the references of the executable, for example: globol variables, function calls, etc...
Does anyone know of such a command? It is similar to 'ldd'.
I understand that TruUnix5.1 is a true 64 bit machine. On other machines, like solaris 8 and Aix 5.1, I can compile and link in 32 bit or 64 bit mode. I can use the "file" command to see if binaries are 32 or 64 bit. For Ex:
$ file lib/libsqlplus.so
lib/libsqlplus.so: ELF 64-bit MSB...
I tried going into strsql and doing F13. From there I select 1, change session attributes. Then, I select output to file... I do a select statement and the output goes to the file. The problem is, I dont get column names and the numeric data is garbage (being print as chars)
How do I get...
I am trying to add a new C source file to a program. I also changed an existing source file to call functions in the new source file. All source files compile OK. The link (actually CRTSRVPGM) is complaining that:
Definition not found for symbol 'xyz'
It appears to me that CRTSVRPGM does...
I have a string that can be from 1 to 40 chars in length. I want to start printing in column 42. I cant figure out how to do it. The following ends in column 42. Is there a way to do this? Do I have to print out 41 spaces first?
printf("%42.40s\n", "Open DB no. 1");
yields...
Is the code below actually the best way to get the present working directory? The code must be portable to many flavors of Unix and Windows. The code works, but is very long for a simple thing.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define WIN
#ifdef UNIX
#include...
I tried to do a "describe" cmd in the mssql query analyzer and there is no such cmd. Does MSSQL have the equivalent of the sqlplus "describe" cmd?
I know I can look at the tree structure in the left pane, but I wanted an ascii printout that I could edit.
I am porting C code to Reliant Unix 5.45 and I ran into compile errors related to POSIX threads. It appears that I have an old version of Posix threads, because I fixed the compile error by changing the 2nd parameter of pthread_mutex_init from NULL to pthread_mutexattr_default...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.