103 Topics
|
|
Hi - I've been at this for hours, so... say hello to my first post. I'd like to allow my many cpp files to call on a function from DLL funcs I've brought in using LoadLibrary/GetProcAddress/etc, but, when I include the header file into the multiple cpp's, I get the … |
|
Hi, I am trying to pass a string to a MACRO using -D option in gcc. I am not getting desired output, below is snippet, please let me know what I am missing. $ gcc -o finame -D CORE="op1_log.txt" finame.c [CODE] #define STR(x) x int main() { FILE *fp; char … |
|
I'm getting errors when I try to compile this code: [CODE]public class EmployeePayRoll { /*** Class Constants ***/ /*** Defaults ***/ public static final String DEFAULT_EMPLOYEE_NAME = "Employee"; public static final double DEFAULT_PAY_RATE = 10.00; public static final double DEFAULT_HOURS_WORKED = 40.0; /*** Minimums/Maximums ***/ public static final double MINIMUM_PAY_RATE … |
|
hi could anybody guide me how could i install latest version of GCC on my window 7 computer. thanx! |
|
Hey, I'm going to college to major in computer programming. Will what I learn in college, in any way, help me to write my own programming language and make my own compiler? If not, where could I acquire the information? |
|
I promise I read the Read This First post and also searched for relevant threads, but I didn't have any luck. I'm taking my first C++ class, and the instructor hasn't been much help when it comes to fundamental things like what compiler we should use, where to get it, … |
|
Hello it is my first time here and I just started C++ so hopefully my question isn't too dumb or anything: I was writing this thing that can do geometric series and arithmetic series. I can write the geometric series code alright and the arithmetic series code alright but once … |
|
Ok.. so uptil now I've been using the DOS compiler and IDE for C++, version 3.0 by borland...(which is like ancient history).. But now I think it's about time to upgrade :P So since I have been away from C++ for a loooooong time, I need to start from scratch. … |
|
i use the window 7 with Turbo C(16-bit) compiler , now i have an assignment to generate the bicycle code in c++ graphics when i run any graphics program the TC show error and terminate . plzz help me as fast as possible. |
|
Hello all. I am having problems with compiling code on my Mac (OS X, 10.6.5). This started happening suddenly when I tried to (1) install f2c using g++, and then (2) compile code including f2c. Now I'm having problems compiling ALL code! I don't understand the error, and would really … |
|
|
guys i need a assembly x86 compiler..in windows i use MASM615..i dont want to code on windows.i do all my coding in java and C..on linux pleas some help for asm compile on ubuntu 10.10 . |
Consider following function: [CODE]void func(const char & input){ //do something }[/CODE] Apparently it makes sense for the parameter to be constant value not reference to constant, Now may a compiler optimize that to constant value so that it'll be the same as following ? [CODE]void func(const char input){ //do something … |
|
Last year there was this one kid in another programming class, but all the time he would brag about how he "broke" java. I glanced over his code and it was a mess. But it seemed to be correct. Even our instructor traced it and found no errors. However, whenever … |
|
I dont know if i have leopard mac os x.. but it shows i have Mac OS X version 10.5.8.. i have a simple issue. i am trying to download Xcode for GCC complier... but it doesn't get downloaded as it requires me to update my software to 10.6.1.. i … |
|
Just started learning java and i'm having a little trouble with my compiling im supposed to give a screen shots of my outputs if it works but vista is blocking it (asks for permission and then just hangs) ive included the questions just in case its being bleh but it … |
|
Hi everyone: I need to find out about compile options in Xcode (I'm an Xcode and C++ newbie). The default compiler for OS 10.6 and XCode version 3.2.2 is apparently LLVM 2.0. Is this related to g++? Also, are there other compilers available within XCode? If so, how would I … |
|
take two following classes and their constructors as samples: [CODE=c++] class One{ public: One(int a,int b):adad1(a),adad2(b){} private: int adad1; int adad2; }; class Two{ public: Two(int input[]){ for (int i=0;i<10;i++) araye[i]=input[i]; } private: int araye[10]; };[/CODE] considering objects with static storage duration, I think first constructor can be applied during … |
|
How does an optimizing c++ compiler determine when a stack slot of a function(part of stack frame of a function) is no longer needed by that function, so it can reuse its memory? . By stack slot I mean a part of stack frame of a function, not necessarily a … |
|
I chopped down my make file so I can compile a C++ program with very few, but some flags set to see if I can determine if they are working. The following is my make file section on C++ flags: [CODE]# Common compiler flags CFLAGS = -mips1 -Wa,-non_shared \ -mno-abicalls … |
|
:SHave they made a py2exe 3.0 yet and if so where in the internet can you find or have they just not made one yet?:confused: If not how else can I turn my programs into executables?:-/ |
|
Hi all, I am having a problem when trying to compile this. from compiler: error: name lookup of 'pixel_number' changed for new ISO 'for' scoping error: obsolete binding at 'pixel_number' I understand that I cannot use the pixel_number variable outside of the for loop, have read so in other posts. … |
|
Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to … |
|
I'm using a cross-compiler that generates MIPS binaries from c++ (mipseb-linux-g++). What I want to do is tell the compiler to use a specific ISA (namely MIPS I). From what I can tell this is a machine option that should be easily configurable. I've tried changing the option in my … |
|
I'm trying to compile an assembly file (.asm or .s) from a c++ file to be used in SPIM. SPIM requires that the file be in MIPS32ABI and for MIPS I ISA. My g++ compiler is not working well and I was wondering if there were any compilers out there … |
|
I'm attempting to manually load the hexdump of an elf file that I compiled using g++ into a processor simulation I designed. There are 30 sections to a standard elf file and I am loading all 30 segments with their proper memory location offset taken into account. I then start … |
|
I'm trying to compile a c# file and generate an asm or s file to be disassembled and run in PSIM. Whenever I try to do this I get errors. I am attempting to compile to mipsI-linux. I think I've determined that my cross compiler that was given to me … |
|
I made a Roguelike game with SFML in Microsoft Visual Studio 2010 and got it to compile fine in both configurations. However, when I run it in Debug mode in either, I get an error message. Debug says: [quote] This Application has failed to start because the Application configuration is … |
|
I'm an experienced programmer of 5 years in Java & C#, but recently I decided to program in C++ as well. I'm familiar with proper code syntax and advanced programming techniques, but this compiler error i'm getting just stumps me beyond recognition, I've analyzed my code for syntax errors a … |
|
[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++) |
|
Need help for simple program, don't have a clue about C. Please, can you help me? I have 3 errors - Undefined symbol i - Undefined symbol y and - Compound statement missing See the program bellow: [CODE]#include<stdio.h> #include<conio.h> #include <math.h> void main( ) { float a, b, c,x3; float … |
The End.