#1339 error while compiling with sdcc

closed-works-for-me
9
2013-05-25
2007-06-06
Abhishek
No

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

Discussion

  • Abhishek

    Abhishek - 2007-06-06
    • priority: 5 --> 9
     
  • Abhishek

    Abhishek - 2007-06-06
    • assigned_to: nobody --> sandeep
     
  • Borut Ražem

    Borut Ražem - 2007-06-06
    • milestone: 100456 --> non_bugs
    • assigned_to: sandeep --> borutr
    • status: open --> pending-works-for-me
     
  • Borut Ražem

    Borut Ražem - 2007-06-06

    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

     
  • Abhishek

    Abhishek - 2007-06-06
    • status: pending-works-for-me --> open-works-for-me
     
  • Abhishek

    Abhishek - 2007-06-06

    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

     
  • Raphael Neider

    Raphael Neider - 2007-06-06

    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

     
  • Abhishek

    Abhishek - 2007-06-07

    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);

    }

    }

    }

     
  • Borut Ražem

    Borut Ražem - 2007-06-28
    • status: open-works-for-me --> pending-works-for-me
     
  • Borut Ražem

    Borut Ražem - 2007-06-28

    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

     
  • SourceForge Robot

    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).

     
  • SourceForge Robot

    • status: pending-works-for-me --> closed-works-for-me
     

Log in to post a comment.