undefined reference to `link'

J

Jinsong Zhao

Amend line 563 to read:
if ( remove(file_out_name), rename(file_temp_name, file_out_name)
== -1 )

Sorry for the previous incomplete post...

Thnaks! I have tried this way, the same error message appears.

Regards,
Jinsong
 
G

Geoff

Sorry for the previous incomplete post...

Thnaks! I have tried this way, the same error message appears.

Regards,
Jinsong

I see it works perfectly in a *nix environment but fails in Windows.

Windows won't allow you to rename an open file. You will have to
change the order of events in the split_file function to write the
contents and close file_temp before the rename. Sorry not to have seen
this earlier.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top