i m developing the IDE for SDCC and when i trying to compiling using that IDE sdcc gives following
": error 4: 'fopen' failed on file"
why this error for and any suggestion how to solve this error... please reply very urgent
Which port are you using? Give us your command line used to invoke SDCC.
Track/post the output of
sdcc -V <your other args>
and look for the failing program (e.g., gpasm for the PIC ports, asx51 of so for mcs51...).
Which system are you on? Windows/cygwin/msys/unix/linux/bsd/mac/...? Maybe the single quotes around the file name are the problem? Being at it: Which SDCC version/revision are you using? All these requirements are written in bold red letters on the bug submission site, probably because we really need the info?!?
Did you get and SDCC errors, so that document1.asm has not been generated? You will have to give a lot of more useful information than simply `it does not work' if you want to get help, especially if it is *urgent*.
HTH,
Raphael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You still haven't answered to Raphael's questions. You also didn't specify on which platform / development environment you are working. I still think that this is a bug in your IDE, so you probably have to ask for help in some other place.
Borut
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 30 days (the time period specified by
the administrator of this Tracker).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=568035
Originator: NO
It means that the compiler can't find the source file.
Why do you think that this is a sdcc bug? I would sya thai it is a bug in your IDE.
Borut
Logged In: YES
user_id=1809595
Originator: YES
actually i m giving the path id "C" file but it give eror with ".asm" file "error 4: 'fopen' failed on file '/abc/document1.asm'"
y this happens
Logged In: YES
user_id=1115835
Originator: NO
Which port are you using? Give us your command line used to invoke SDCC.
Track/post the output of
sdcc -V <your other args>
and look for the failing program (e.g., gpasm for the PIC ports, asx51 of so for mcs51...).
Which system are you on? Windows/cygwin/msys/unix/linux/bsd/mac/...? Maybe the single quotes around the file name are the problem? Being at it: Which SDCC version/revision are you using? All these requirements are written in bold red letters on the bug submission site, probably because we really need the info?!?
Did you get and SDCC errors, so that document1.asm has not been generated? You will have to give a lot of more useful information than simply `it does not work' if you want to get help, especially if it is *urgent*.
HTH,
Raphael
Logged In: YES
user_id=1809595
Originator: YES
this is my part of code which actually pass the arguments to the sdcc ...
void MainWindow::compile()
{
QString fileName = projectFileList.at(0);//File path which is to be compiled
if(!fileName.isEmpty()){
QString program = "sdcc.exe"; // name of the process to be started
QStringList arguments;
arguments << fileName; // arguments to be pass to the process
QProcess *myProcess = new QProcess(parent); // creating a new process
myProcess->start(program,arguments);// starting a new process
if(!myProcess->waitForStarted()){ // check for process start
MessageBox(NULL,TEXT("Not Started"),TEXT("TRI C"),0);
}
if (myProcess->waitForFinished(30000)){ // wait for process finish
QString str="";
str.append(myProcess->readAllStandardOutput());
str.append(myProcess->readAllStandardError());// passing the O/P of the process to IDE
compilewin->clear();
if (str==NULL)
{
compilewin->append("0 errors 0 warnings");
}
compilewin->append(str);
MessageBox(NULL,TEXT("Done"),TEXT("TRI C"),0);
statusBar()->showMessage(tr("File Compile"), 2000);
//editor->append(str);
}
}
}
Logged In: YES
user_id=568035
Originator: NO
You still haven't answered to Raphael's questions. You also didn't specify on which platform / development environment you are working. I still think that this is a bug in your IDE, so you probably have to ask for help in some other place.
Borut
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 30 days (the time period specified by
the administrator of this Tracker).