Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

svn 7121 doesn't properly load a file when the linker encounters an error

(1/2) > >>

ouch:
so yeah, if there is an error that causes the linker to go to a source file at some line number, the file will be loaded blank... you can work around this by opening the file in the editor first and then rebuilding, then everything seems to work.

Jenna:
Can you attach a file where this happens and post your encoding settings ("Settings -> Editor -> General settings -> Other settings").
What is your system locale.
And of course which OS do you use ?

ouch:
The file is attached.

encoding is WINDOWS-1252

Local is English (United States)

OS is: Windows 7 64 bit

danselmi:
Is it the compiler or the linker who complains?
I think I have seen this behavior, but with linker errors.

ouch:
You made me go back and think about that...

heh, I recreated my error and it was indeed a linker error not a compiler one. My mistake.

But it still shouldn't do that...

here is the build log if it helps.


--- Code: ----------------- Clean: Debug in Generic project name ---------------

Cleaned "Generic project name - Debug"

-------------- Build: Debug in Generic project name ---------------

mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=0 -DWXSQLITE3_HAVE_CODEC=0 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0  -g    -IC:\wxwidgets\WX_2_9_0_BRANCH\include -IC:\wxwidgets\WX_2_9_0_BRANCH\contrib\include -I"..\Generic project name" -IC:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_dll\mswu -I..\..\..\..\..\wxwidgets\wxsqlite3\include -I..\..\..\..\..\wxwidgets\wxsqlite3\sqlite3\sqlite-amalgamation-3070602 -I..\..\..\..\..\libcsv-3.0.0  -c "C:\Users\censored\Desktop\censored-Code\Generic project name\wx_pch.h" -o wx_pch.h.gch
windres.exe -i C:\Users\censored\Desktop\sensor~1\genere~1\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\wxwidgets\WX_2_9_0_BRANCH\include -IC:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_dll\mswu
mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=0 -DWXSQLITE3_HAVE_CODEC=0 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0  -g    -IC:\wxwidgets\WX_2_9_0_BRANCH\include -IC:\wxwidgets\WX_2_9_0_BRANCH\contrib\include -I"..\Generic project name" -IC:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_dll\mswu -I..\..\..\..\..\wxwidgets\wxsqlite3\include -I..\..\..\..\..\wxwidgets\wxsqlite3\sqlite3\sqlite-amalgamation-3070602 -I..\..\..\..\..\libcsv-3.0.0  -c "C:\Users\censored\Desktop\censored-Code\Generic project name\Generic_project_nameMain.cpp" -o obj\Debug\Generic_project_nameMain.o
mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=0 -DWXSQLITE3_HAVE_CODEC=0 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0  -g    -IC:\wxwidgets\WX_2_9_0_BRANCH\include -IC:\wxwidgets\WX_2_9_0_BRANCH\contrib\include -I"..\Generic project name" -IC:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_dll\mswu -I..\..\..\..\..\wxwidgets\wxsqlite3\include -I..\..\..\..\..\wxwidgets\wxsqlite3\sqlite3\sqlite-amalgamation-3070602 -I..\..\..\..\..\libcsv-3.0.0  -c C:\wxwidgets\wxsqlite3\src\wxsqlite3.cpp -o obj\Debug\wxwidgets\wxsqlite3\src\wxsqlite3.o
mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=0 -DWXSQLITE3_HAVE_CODEC=0 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0  -g    -IC:\wxwidgets\WX_2_9_0_BRANCH\include -IC:\wxwidgets\WX_2_9_0_BRANCH\contrib\include -I"..\Generic project name" -IC:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_dll\mswu -I..\..\..\..\..\wxwidgets\wxsqlite3\include -I..\..\..\..\..\wxwidgets\wxsqlite3\sqlite3\sqlite-amalgamation-3070602 -I..\..\..\..\..\libcsv-3.0.0  -c "C:\Users\censored\Desktop\censored-Code\Generic project name\Generic_project_nameApp.cpp" -o obj\Debug\Generic_project_nameApp.o
mingw32-g++.exe -LC:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_dll\ -L..\..\..\..\..\wxwidgets\wxsqlite3\lib\gcc_lib\ -L..\..\..\..\..\wxwidgets\wxsqlite3\sqlite3\SQLite3 -L..\..\..\..\..\libcsv-3.0.0\LibCSV  -o "bin\Debug\Generic project name.exe" obj\Debug\Generic_project_nameMain.o obj\Debug\wxwidgets\wxsqlite3\src\wxsqlite3.o obj\Debug\Generic_project_nameApp.o  obj\Debug\resource.res  -mthreads  -lwxmsw29u -lSQLite3 -lLibCSV  -mwindows
obj\Debug\wxwidgets\wxsqlite3\src\wxsqlite3.o:C:/wxwidgets/wxsqlite3/src/wxsqlite3.cpp:2986: undefined reference to `sqlite3_wal_checkpoint_v2'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 7 seconds)
1 errors, 0 warnings (0 minutes, 7 seconds)
--- End code ---

oh, and I'm using TDM Mingw 4.5.2

Navigation

[0] Message Index

[#] Next page

Go to full version