C: stdio rename function problem?????
idbruce
Posts: 6,197
As you can see below, I seem to be having a problem, with the rename function.
As a side note, I seem to have created an undeletable directory. Any suggestions besides reformatting.
#include <stdio.h> int main(void) { char *testz; char *testp; testz = "/test/z"; testp = "/test/p"; rename(testz, testp); return 0; }
Project Directory: C:/Documents and Settings/Bruce/Desktop/Rename/ SimpleIDE Version 1.0.2 C:/Documents and Settings/Bruce/My Documents/SimpleIDE/Learn/Simple Libraries/ C:/Documents and Settings/Bruce/My Documents/SimpleIDE/ Updated on: 2015-02-14 propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408) propeller-elf-gcc.exe -I . -L . -o cmm/Rename.elf -Os -mcmm -Wall -m32bit-doubles -fno-exceptions -std=c99 Rename.c C:\DOCUME~1\Bruce\LOCALS~1\Temp\ccM8hivF.o: In function `_main': (.text+0x9): undefined reference to `_rename' collect2: ld returned 1 exit status Done. Build Failed! Check source for bad function call or global variable name `_rename'
As a side note, I seem to have created an undeletable directory. Any suggestions besides reformatting.
Comments
Thanks for the explanation. Not that it is any big deal, but perhaps stdio.h should be updated to either remove or comment out the declaration, until a function is written.
I thought perhaps one or two, but if there are a lot of them, that makes good sense.