Hello everyone... this is my first time to this website, so please forgive me if I do something incorrectly... Anyhow, I am working on my final project for my C-Languag 1 programming class... for the project, I need to build a custom library and 4 test programs to test the functionality of the library... I am currently still working on getting ... |
The -c option compiles the source file and stops -- ie, it does not link the resultant object file into an executable. The -S option produces an assembly code output and stops -- ie, it does not create an object file nor does it create an executable. In both these cases, the resultant .o or .s file would by default have ... |
Hi, I tried searching the archives for this topic, but I couldn't find an explanation. I am trying to compile a program. When I compile it, I get the following error: "dereferencing pointer to incomplete type" The line that is causing this error is: pType = ntohs(e->eh_type); where pType and eh_type are unsigned short variables. Can someone please explain to me ... |
|
I am compiling a program for the Palm pilot using CodeWarrior v8, and writing the code in C. However: when I try to include header files with C++ "class" definitionsit gives me errors galore. I'm sure it's a simple #include statement or an #ifndef statement that I am missing, but trying those has done nothing. Here is some sample code that ... |
#include #include #include #include #include "functions.h" int main(int argc, char *argv[]) { int count, string_size; int other = argc; //SHOW my_show_array; char *temp_char, *file_name; if (argc > 1) { printf("File names have been provided and will be loaded in the given order:\n\n"); for(count = 1; count < argc; count++) { string_size = sizeof(argv[count]); //file_name[string_size]=*argv[count]; printf("%s\n", argv[count]); } ... |
#include #include #define _GNU_SOURCE #include #include "ansidecl.h" #include /* a structure that defines a string buffer */ typedef struct strbuf { char *contents; /* pointer to dynamically allocated buffer contents */ size_t length; /* number of characters in buffer (excluding '\0') */ } StringBuffer; /* function prototypes */ StringBuffer *strbuf_new(const char *cstr); StringBuffer *strbuf_append(StringBuffer *buf, const char ... |
|
|
|
Hi I am trying to compile and run my prog3.c program, but I am getting the compiler errors below. I have tried to reference the information by doing #include "node0.c" etc., but no luck. Any ideas on how to fix this problem? I attached the files below that I am working with. prog3.c is suppose to be the main simulator file. ... |
#include #include #include static double *rdata = NULL, *idata = NULL; static fftw_plan rplan, iplan; static int last_fft_size = 0; double A[8192]; int n = 8192; int i,m,k; char erg[35]; char erg2[35]; double absval; int is16bitfile = 1; int main() { double cc; int v, val, val2; char inc[n]; FILE *infile; FILE *file; FILE *file2; int samplerate = ... |
Permalink Jul 2nd, 2010 0 Pro*C compilation error on AIX5.3 Expand Post While compiling Pro*C application on AIX...getting the following error proc iname=v4_mcdr_6010 Pro*C/C++: Release 10.2.0.1.0 - Production on Fri Jul 2 11:15:52 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. System default option values taken from: /edw/ora10gclient/10.2.0/client/precomp/admin/pcscfg.cfg Parser error at line 756, column 32, file /usr/include/sys/thread.h: Error at ... |
|
#include #include #include void main( ) { float a, b, c,x3; float a0,a1,a2; clrscr( ); printf("Raiz: x = a + bi "); printf("Digite o valor de a: "); scanf("%f",&a); printf("Digite o valor de b: "); scanf("%f",&b); printf("Digite o valor de x3: "); scanf("%f",&x3); printf("As raizes sao: "); printf("x1 = %.2f + %.2f i \n",a,b); printf("x2 = %.2f - %.2f i ... |
void doctorreport(void) { system("color 2"); char Target[50]; int tell=0; int Found=0,count=0; char doctor1[30],doctor2[30],doctor3[30]; int health=0,fees=0,collected=0; int choice=0; if((customer1=fopen("transaction.txt","r"))==NULL) printf("THE FILE IS EMPTY"); else { printf("\n\n\t\t PLEASE ENTER A OPTION BELOW FOR A DOCTOR REPORT"); printf("\n\n\t\t 1. DR.ROBERT WILLIAMS"); printf("\n\n\t\t 2. DR.JAMES BROWN"); printf("\n\n\t\t 3. DR.JOHN WHYTE"); printf("\n\n\t\t ENTER AN OPTION:"); scanf("%d",&choice); Sleep(1500); system("cls"); system("color 2"); switch(choice) { case 1:{ strcpy(doctor1,"Dr.Robert.Williams"); while( ... |
|
/* Adam Ross Cohen -- 000891451 -- CSI 333 Fall 2009 Program 2 */ #include #include #include /* create a struct for the nodes of the linked list */ struct node { /* each node holds an int value and the pointer to the next node */ int value; struct node *next; }; int main(void) { /* Prototypes ... |
|
. . #include #include #include #include #include void fnlogincheck(); int main(int argc,char**argv); { system("cls"); fnlogincheck(); return 0; } void fnlogincheck(); { char *pcloginid[3]={"user1","user2","user3"}; char *pcpwd[3]={"Potato","Tomato","Turnip"}; int l,p,i,c; char login[5]; char password[6]; printf("\n\n\n\n\t\tEmployee Information System\n"); printf("\t\t===========================\n\n"); printf("\t\tLogin Screen\n"); printf("\t\t============\n"); printf("\n\t\tEnter User Id\t: "); scanf("%s",&login); printf("\n\t\tEnter Password\t: "); scanf("%s",&password); } { l=strcmp(&loginid[i], login); p=!strcmp(&pwd[i],password); for(i=o,i<=3,i++) } { password[c]= password[6] printf("*"); for(c=0,c<=6,c++) } { ... |
//put in here the work function that gets called from the main function. //it will have a random number generator that chooses between 2 numbers. //these numbers will decide if it enqueues or dequeues void work(FILE *ifptr, FILE *ofptr, int *queue, const int size, int *tail, int *head) { //variable to store the item read int read; //check to see if ... |
|
Q. Why is Turbo C not able to find any of my #include files? A. The compiler searches for include files in the Turbo C Include Directories. This option is specified under the Options/Directories menu. The INSTALL program initially sets this option to the directory where it copied all the Turbo C *.h files. |
Project : Console application Compiler : GNU GCC Compiler (called directly) Directory : C:\Documents and Settings\jim\Desktop\ -------------------------------------------------------------------------------- Switching to target: default Compiling: counter2.cpp Linking console executable: C:\Documents and Settings\jim\Desktop\console.exe C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16' collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 8 seconds) 0 errors, 0 warnings |
|
|
|
// Calcolo formula per Legge di Murphy (www.andreagozzi.com) // Inclusione librerie in directory di sistema #include #include #include // Funzione Main() main() { // Dichiarazione delle variabili float urgenza; float complessita; float abilita; float frequenza; float importanza; float e; // Impostazione variabile e fissata al valore 0.7 e = 0.7; float risultato; float pigreco; // ... |
int main() { int oneNumber =0; // hold the valid integer entered int countPositiveFactors =0; // accumulate a sum , so should be initialize to 0 int sumPositiveFactors =0; // accumulate a sum , so should be initialize to 0 int prodPositiveFactors = 1; // accumulate a product so should be initialize to 1 while (1) { printf("Enter an integer > ... |
1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2760: syntax error : expected '{' not '*' 1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2059: syntax error : ')' 1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2059: syntax error : ')' 1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2143: syntax error : missing ';' before '{' 1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2760: syntax error : expected 'identifier' not '(' 1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2760: syntax error : expected '{' not '*' 1>d:\code\applications\opc\opcserversdebug\dlfrontieropcserver\frontieropcserver.h(44): error C2059: syntax error : ')' ... |
|
|
|
Hello All, I'm getting some gcc compile errors and the compiler is complaining with this message;/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(text+0x18): In function `_start`:../sysdeps/i386/elf/start.S:77: undefined reference to `main' I'm running redhat 9.0 and after some google searches, I found that people who had the same error may have an imcompatible gcc compiler. Can anyone help me understand what's happening?Thanks,David |
Okay, I'm in desperate need of some help here!! I can't get my application to compile. I'm compiling with gcc and I keep getting the linker errors "Undefined Symobols". I'm not overly familiar with gcc and unix, so I might be including incorrectly. I have a header file with all my function prototypes. I have a ... |
For some reason, this#include int string2float(char *word){ float ret; ret = 0; ret = strtof(word, NULL); return ret;}gives me an "unidentified reference to strtof" at the line of ret = strtof(word, NULL);Which really confuses me, because elsewhere in this program I have almost the samet thing, but with an int ret; and strtol(word, NULL);, which works. ... |
Hi all, Can someone please tell me what is wrong with the code below.i get a " "curr->name" is not an lvalue,but occurs in a context that requires one.curr->name=list1[i];" message when i compile it.Why is that?Thank you.#include#include #define CHARS 30#define NAMES 20main(){struct NODE { char name[CHARS]; struct NODE *next;};typedef struct NODE Node;int count= -1;int i,j,x;char list1[NAMES][CHARS],list2[NAMES][CHARS];FILE *fp;Node* ... |
Pro*C Compilation errors by munijohar Fri Apr 27, 2007 9:29 am Hi, I have a Pro*C program that listens at a socket, reads the data from the socket into a table. I have a problem in compiling this Pro*C program. My database version is 8.174. The server is running solaris 5.0 Now when i set my ORACLE_HOME to point to ... |
Hi guys, I am using oracle 10g, proc 10.2.0.1.0. I am having a strange problem. I don't know wheather its a env problem or installation problem or the behaviour of proc on the two platforms (HP-UX11 and Linux RHEL4 ). I have Oracle 10g installed on HP-UX and RHEL4 Linux. Now the *.pc files compile fine on HP-UX, but they produce ... |
It sounds like the precompiler is failing to connect to oracle. When it does the precompile proc connects to oracle to check the validity of any DML sql statements. For some reason when you use the makefile proc cant connect to your database. This suggests some problem with your environment variables possibly such as ORACLE_SID, ORACLE_HOME etc. See the SQLCHECK option ... |