the issue I'm having is that in the yacc.y file I define a global list fList = NULL; I then want addFunction to add to it. The problem is that when it receives fList, it isn't NULL, although I set it...
Type: Posts; User: simpatico_qa
the issue I'm having is that in the yacc.y file I define a global list fList = NULL; I then want addFunction to add to it. The problem is that when it receives fList, it isn't NULL, although I set it...
I guess I found the solution. Still to verify, though.
Then try
void foo(int b){} . It was just any method definition with an argument.
The faulty code for the project is in
trunk - sscompiler - Project Hosting on Google Code
It includes a makefile.
if you run: ssCompiler.out and then type int main(int c){} it will give a...
Hello,
IŽd like to schedule a task (through a script) such that it executes an application every two days. However I cannot guarantee that the computer will be on every two days at a specific...
I need a complete script example.
I've found this on microsoft's website, but nothing happens when I execute the script and log out.
(I've placed the file also in the system32 folder, let alone...
any help on this?
Hello,
I need to change the desktop background programming.
The execution of the below .vbs doesn't do anything. What is wrong? Thank you
dim wshShell
dim sUserName
although now eclipse generated the binaries, launching them they terminate before printing the test output (printf("test");) . What else could be wrong here now? Launching the test.exe outside...
I've tried adding it to the library paths in eclipse, as well as -l libpng, libpng.a, libpng.lib, from the linker options, but in vain.
I've also tried from the prompt:
C:\Documents and...
so what should i do compile the source code for the library on my own? As a static or shared library?
I actually get the problem with other functions of the same file but not for variables defined in the same.
png_byte color_type;
png_byte bit_depth;
png_structp png_ptr;
png_infop...
itCbitC that I knew without you saying.
According to this page: png_create_write_struct it should be png.h
But as you can seen there the definition of the function is C code I understand.
...
Hello,
I'm having problems writing png files in c using libpng.
When in my code I write:
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
I'm told undefined...
okay, I think that quite solves it (I'll test on Linux) but can I learn something out of this:
I know that a pointer is generally (depending on the OS implementation or language?) a fixed size,...
why *new would be better than jobs? Doesn't it cost an extra 'follow'?
also, in the debugger you see it points to a struct with all fields initialized, doesn't that imply that memory is allocated to it?
Was allocated memory as shown below. First call to free in the whole program, so discard c?
void addJob(const pid_t pid, const int status, const char* fileName){
jobs* new =...
This is getting interesting. Actually in the debugger I see that both jobs and temp point to the list nodes (structures) wanted.
I've attached a screenshot of the debugger with memory addresses....
Looks like you don't get what I try to say. The debugger doesn't go past the free(temp) call. So adding any line past it won't help.
I don't walk the list, I check right away the first element,...
Actually toDel or temp at that point points to the first element. Hence nothing points to it other than temp.
I do walk the list, but only later so the problem is before. All what happens before...
I do walk the the list in the subsequent lines of code but since the debugger stops before doing it and I'm at the first function call I avoid posting it. Also walking through the debugger the...
what I posted is the actual code of concern! The other portion is just iteration not reached.
I was freeing directly temp getting the same error. It was just a poor attempt.
It's not double free since I get the error at the first call of it anyway.
Well, it's the first part of it, the other part just iterates. The problem is that I get a *** glibc detected ** free() invalid next size (fast) error when executing that line. Checking in eclipse...