Hello, I work at the U.S. Department of Labor, on the Unemployment Insurance program. I am working on developing a new Benefit Financing model for the state of Oregon, and I am having an issue with passing a struct between mutiple .c and .cfn files( the .cfn files are for the C cursor screens). The srtuct in question foloews: extern struct{ double x[6][30]; double xtxy[6][5]; double b[6]; double bstde[6]; double tval[6]; double bset[3][6]; double stats[6]; double ajrsq,ystde,ymse,xtra1,xtra2,syy;}regrs_; The struct is declared first in the main .c module, bsyrhd.c, and is further defined in a .cfn called later, invxtx5.cfn. Compiling the …

Member Avatar
Member Avatar
+0 forum 4

When I try to compile the program below in Eclipse I get two erros, ‘const class Fraction’ has no member named ‘n’ & ‘const class Fraction’ has no member named ‘d’ When I compile it on the command line with g++ -Wall FloatFraction2.cpp Fract7.cpp -o FloatFraction I get more errors than I care to look at. I copies this code straight from my book (C++ Without Fear 2nd Edition) so I don't understand why it wouldn't work. FloatFraction2.cpp #include <iostream> #include "Fract.h" using namespace std; class FloatFraction : public Fraction { public: double float_val; // Inherifted constructors: with C++ 0X, …

Member Avatar
Member Avatar
+0 forum 2

# Introduction # A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, C++, D, etc.) might still learn a thing or two. And to that point, I would also mention that conceptually, most of this tutorial applies to any native, compiled language. For widest applicability, this tutorial will feature GNU tools (GCC) used in a Unix-like environment (POSIX). For Mac OSX, the …

Member Avatar
Member Avatar
+11 forum 2

I have been working on a project with selenium 2 webdriver for a few weeks. I got to a milestone and decided to compile my project in release mode and test the executable. Thing is, it crashes if I try to run it from the release folder (or anywhere else via double click) but works fine when I start it with F5 in either debug or release mode. I'm unsure how to even start to debug this problem to be honest. I get the windows message "seleniumtest.exe has stopped working" with the options to debug, search online for a solution, …

Member Avatar
Member Avatar
+0 forum 14

am compiling the java program inside another javaprogram..... how to add an additional library to that conpiling java program....

Member Avatar
+0 forum 0

I have several files to include from a subfolder and I just can't get this to work. I'm propably missing something here... The Makefile and .cpp with main function are located at /path/to/ and files to be included are at /path/to/src/buffer and /path/to/src/hash. Both of these folders have .cpp and .h for respective class. I've had no problems compiling until I put this whole project together and made a single Makefile for them. Here's my try on the Makefile: objects = delta.o hash.o buffer.o buffer_dir = path/to/src/buffer hash_dir = path/to/src/hash delta: $(objects) g++ -g -o $(objects) delta.o: delta.cpp buffer.o hash.o …

Member Avatar
Member Avatar
+0 forum 1

[CODE]void alternate(char wordWord[][MAX],char wordVar[],int word[],int i,int j, int k, int l) { char ang[4],si[3],ni[3],ay[3],sa[3],kay[4]; int X,Y,Z1,Z2; strcpy(ang,"ang"); strcpy(si,"si"); strcpy(ni,"ni"); strcpy(ay,"ay"); strcpy(sa,"sa"); strcpy(kay,"kay"); tokenize(wordWord,wordVar,word,i,j,k,l); if(wordWord[j][k] == ang[4] || wordWord[j][k] == si[3]) X = wordWord[j][k]; else if(wordWord[j][k] == ni[3]) Z1 = wordWord[j][k]; else if(wordWord[j][k] == ay[3]) Y= wordWord[j][k]; else if(wordWord[j][k] == sa[3] || wordWord[j][k] == kay[4]) Z2 = wordWord[j][k]; printf("%c %c %c %c %c %c %c \n",ang[4],si[3],ni[3],ay[3],sa[3],kay[4]); printf("%d %d %d %d\n",i,j,k,l); printf("Alternation 1: %c %c %c %c\n",Y,Z1,Z2,X); printf("Alternation 2: %c %c %c %C\n",Y,X,Z1,Z1); printf("Alternation 3: %c %c %c %c\n",Z2,Y,X,Z1); }[/CODE] is their something wrong with this? Every time I run it, it …

Member Avatar
Member Avatar
+0 forum 5

Hi I'm new to java and I have written a simple Program and everything and set up a Path variable And then I tried to compile it by changing the cd and using javac Then it asks whether javac.exe can make changes to the computer. I tapped yes and then the screen went Black. About a second later it came back on a new line but nothing had changed and it hadn't created a CLASS File Is there something I am doing wrong?

Member Avatar
Member Avatar
+0 forum 8

are there any conditions for running the groupadd command via the command line? i have been trying it like this: [CODE]groupadd mysql[/CODE]and i'm getting the following error [CODE]groupadd: cannot lock etc/group; try again later [/CODE]

Member Avatar
Member Avatar
+0 forum 1

Hey, I am having trouble compiling in netbeans. When I go to compile, I usually go to Run>Clean and Build Main Project (or shift F11). When it compilies, it says Copying 1 file to /Users/me/NetBeansProjects/JavaApplication11/build Nothing to copy. And when I go to run the .jar file, it doesn't open and says "The Java JAR file "JavaApplication11.jar" could not be launched." I set it as the main project and the program does have a package. Any ideas? I've never had this problem before. (I'm on a MacBook if that helps) Thanks in advance!

Member Avatar
Member Avatar
+0 forum 2

Here is Mandelbrot set viewer in Tkinter and modules for shedskining (included compiled modules for windows in the zip file): [CODE]# mandelsh.py def mandel(real, imag, max_iterations=20): '''determines if a point is in the Mandelbrot set based on deciding if, after a maximum allowed number of iterations, the absolute value of the resulting number is greater or equal to 2.''' z_real, z_imag = 0.0, 0.0 for i in range(0, max_iterations): z_real, z_imag = ( z_real*z_real - z_imag*z_imag + real, 2*z_real*z_imag + imag ) if (z_real*z_real + z_imag*z_imag) >= 4: return i % max_iterations return -1 res = 0 res = mandel(1.0, …

Member Avatar
Member Avatar
+0 forum 7

I'm REALLY angry! I've been trying to get this stupid code to compile for way too long now. I've spent 30 bucks on this book and the first code it tells you compile doesn't work! Here's a link to the code... [url]http://d3dcoder.net/d3d10.htm[/url] I'm sorry that you have to download that but PLEASE download it and compile the COMMONS folder as a new project. I think there's a PDF of the page that shows how to comile and set it up. I can't return the book because i bought it through amazon and i've heard its a really good book but …

Member Avatar
Member Avatar
+0 forum 2

[IMG]http://i1187.photobucket.com/albums/z394/crazythang/photo-1.jpg[/IMG] i try to compile a simple c++ hello world, and i get this, PLZ HELP i compile with g++...

Member Avatar
Member Avatar
+0 forum 5

[code] 1>------ Build started: Project: DirectXtutrials, Configuration: Debug Win32 ------ 1>Build started 3/24/2011 5:24:05 PM. 1>InitializeBuildStatus: 1> Touching "Debug\DirectXtutrials.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Konnor\Documents\Visual Studio 2010\Projects\DirectXtutrials\Debug\DirectXtutrials.exe : fatal error LNK1120: 1 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:07.66 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== [/CODE] So that's whats wrong with my code. The source code doesn't matter because i've tried multiple source codes and it still doesn't work. I'm trying to learn directX 10 and for …

Member Avatar
Member Avatar
+0 forum 4

Hi, I have been trying to compile open source projects since past few months with no success. I just don't know how to go about the entire thing. Readings over the internet have not helped much. Some come with [COLOR="red"]./Configure[/COLOR] and a [COLOR="red"]Makefile[/COLOR] while others with only a [COLOR="Green"]Makefile[/COLOR]. How to use them to generate executables (or they have some other purpose :?:). My machine currently has: [LIST] [*]Windows XP [*]Mingw Compiler for C/C++ [*]Cygwin [/LIST] Do I need any other software? Thanks!

Member Avatar
Member Avatar
+0 forum 5

Nevermind, I wanted to delete this post, but did not want to bother emailing the moderator. Sorry.

Member Avatar
Member Avatar
+0 forum 5

hey all, first post of a beginner coder ;), I keep geting the following error : conflicting types of 'graphic_choice'.. its not a warning so it wont compile. I haven't finished case 7 so that may have some syntax issues. hope this isn't to big of a code block? i just deleted the contents of the working functions [CODE]#include <stdio.h> #include <stdlib.h> main() { int menu(); /* function to select option*/ void input_distances(int distance_array[],int num); void display_distances(int distance_array[],int num); void average_calc(int distance_array[],int num); void min_max(int distance_array[],int num); void top_three(int distance_array[],int num); void converter(int distance_array[],int num); void sorted_graphic(int distance_array[],int num); void …

Member Avatar
Member Avatar
+0 forum 7

Hello DaniWeb Software Developers :D I have a problem which exceed my programing capabilities and i need your help! Problem: I am somewhat new to c++ and i have been making some useful console applications in windows GUI visual Express. I thought i would give building in Linux a try using g++ through terminal so first i tried a single (.cpp) Hello World file and built it with success. Now i want to build a project that i wrote in windows. This program calculates the pass rating for NCAA Quarter Back's. It has 3 files 2(.cpp) files and 1(.h) file …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have prolly very noobish question. I compile my program separately with GCC by: [CODE]gcc -O2 -Wall -c foo.c[/CODE] I just wat to ask if there is a chance to specify the output destination of [B]foo.o[/B] file. Now the output is forwarded to the makefile dir. Thank you for your interest.

Member Avatar
Member Avatar
+0 forum 5

[CODE]a.cpp: In function ‘int main()’: a.cpp:39: error: no matching function for call to ‘find(int&, int)’ [/CODE] [CODE]#include <iostream> #include <fstream> using namespace std; int minutes, seconds; char temp; int array_l; bool* sees; int* a; int saade; int main() { ifstream sisf("raadio.sis"); ofstream valf("raadio.val"); /* * How many songs? */ sisf >> array_l; int a[array_l]; /* * Read info and putting info in array */ for (int i = 0; i < array_l; i++) { sisf >> minutes >> temp >> seconds; a[i] = 60 * minutes + seconds; cout << a[i] << endl; } sisf >> minutes >> temp >> …

Member Avatar
Member Avatar
+0 forum 5

The End.