Bug #13230 2008-02-28 15:19
collins2
Rename file problem
I have had a file "comm32_c.c" and try to compile (Build->Compile current file) and I get ... mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -g -D__WXDEBUG__ -ID:\LANG\wxPack28\include -ID:\LANG\wxPack28\contrib\include -ID:\LANG\wxPack28\lib\gcc_lib\mswd -ID:\LANG\MinGW410\include -c D:\PROJ\wxcbTETRASym\comm32_c.c -o obj\Debug\comm32_c.o Process terminated with status 0 (0 minutes, 0 seconds) 0 errors, 0 warnings Next, I've renamed it to "comm32c.c", and try to compile (Build->Compile current file) and I get ... stack of errors. gcc.exe -ID:\LANG\gnuh8elf.603\include -c comm32c.c -o comm32c.o In file included from comm32c.c:5: comm32c.h:9:21: error: no include path in which to search for windows.h comm32c.h:10:21: error: no include path in which to search for winbase.h comm32c.h:11:19: error: no include path in which to search for conio.h comm32c.h:12:19: error: no include path in which to search for stdio.h comm32c.h:13:20: error: no include path in which to search for string.h In file included from comm32c.c:5: ....other errors.... comm32c.c:111: error: 'ReadBytes' undeclared (first use in this function) comm32c.c: In function 'CommOutQueCount': comm32c.c:120: error: 'struct <anonymous>' has no member named 'Handle' comm32c.c:120: error: 'NULL' undeclared (first use in this function) Process terminated with status 1 (0 minutes, 0 seconds) 50 errors, 1 warnings Next, I've try to rebuild (Build->Rebuild) and I get ... -------------- Build: Debug in wxcbTETRASym --------------- mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -g -D__WXDEBUG__ -ID:\LANG\wxPack28\include -ID:\LANG\wxPack28\contrib\include -ID:\LANG\wxPack28\lib\gcc_lib\mswd -ID:\LANG\MinGW410\include -c D:\PROJ\wxcbTETRASym\comm32c.c -o obj\Debug\comm32_c.o ..... other files compilation logs.... mingw32-g++.exe -LD:\LANG\wxPack28\lib\gcc_lib -LD:\LANG\MinGW410\lib -o bin\Debug\wxcbTETRASym.exe obj\Debug\comm32_c.o obj\Debug\muarts.o obj\Debug\mycrc.o obj\Debug\mystdlib.o obj\Debug\mystring.o obj\Debug\pcgufunc.o obj\Debug\tetradataobjs.o obj\Debug\tetraenv.o obj\Debug\wxCOMport.o obj\Debug\wxcbTETRASymApp.o obj\Debug\wxcbTETRASymMain.o obj\Debug\resource.res -lwxmsw28d -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows Output size is 28.14 MB Process terminated with status 0 (0 minutes, 31 seconds) 0 errors, 0 warnings but "comm32_c.c" is stil compiled and linked. When I close and reopen project or shutdown and relaunch C::B and reload project everything is OK. Compile (Build->Compile current file) after project reopen mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -g -D__WXDEBUG__ -ID:\LANG\wxPack28\include -ID:\LANG\wxPack28\contrib\include -ID:\LANG\wxPack28\lib\gcc_lib\mswd -ID:\LANG\MinGW410\include -c D:\PROJ\wxcbTETRASym\comm32c.c -o obj\Debug\comm32c.o Process terminated with status 0 (0 minutes, 0 seconds) 0 errors, 0 warnings Rebuild (Build->Rebuild) after project reopen -------------- Build: Debug in wxcbTETRASym --------------- mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -g -D__WXDEBUG__ -ID:\LANG\wxPack28\include -ID:\LANG\wxPack28\contrib\include -ID:\LANG\wxPack28\lib\gcc_lib\mswd -ID:\LANG\MinGW410\include -c D:\PROJ\wxcbTETRASym\comm32c.c -o obj\Debug\comm32c.o .....other files compilation logs.... mingw32-g++.exe -LD:\LANG\wxPack28\lib\gcc_lib -LD:\LANG\MinGW410\lib -o bin\Debug\wxcbTETRASym.exe obj\Debug\comm32c.o obj\Debug\muarts.o obj\Debug\mycrc.o obj\Debug\mystdlib.o obj\Debug\mystring.o obj\Debug\pcgufunc.o obj\Debug\tetradataobjs.o obj\Debug\tetraenv.o obj\Debug\wxCOMport.o obj\Debug\wxcbTETRASymApp.o obj\Debug\wxcbTETRASymMain.o obj\Debug\resource.res -lwxmsw28d -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows Output size is 28.14 MB Process terminated with status 0 (0 minutes, 31 seconds) 0 errors, 0 warnings Best regards, Collins
- Category
- Application::Error
- Group
- Status
- Open
- Close date
- Assigned to