GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Dec 19, 2014 8:00 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: What do I link to in VC++?
PostPosted: Sat Oct 18, 2008 6:18 pm 
Offline

Joined: Sat Oct 18, 2008 6:13 pm
Posts: 3
I'm trying to being programming with GTK on windows using Visual C++. I've written a simple program, but the linker always gives me unresolved symbols:

1>------ Build started: Project: HelloGTK, Configuration: Debug Win32 ------
1>Linking...
1>Main.obj : error LNK2019: unresolved external symbol _gtk_main referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_widget_show referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_window_new referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_init_abi_check referenced in function _main
1>C:\Users\alec\projects\HelloGTK\Debug\HelloGTK.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Users\alec\projects\HelloGTK\HelloGTK\Debug\BuildLog.htm"
1>HelloGTK - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



All the tutorials I see compile using gcc and use some special program to link to the libs or something. Anyway, what libs to I need to link to? I tried going through each of the libs in the lib directory and linking to them: none of them resolved any of the symbols...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 6:26 pm 
Offline
GTK+ Geek

Joined: Fri May 23, 2008 7:13 am
Posts: 73
This is the list of libraries my application gets linked to (using VC++ 6.0):

gtk-win32-2.0.lib gdk-win32-2.0.lib atk-1.0.lib gdk_pixbuf-2.0.lib pangowin32-1.0.lib pangocairo-1.0.lib pango-1.0.lib cairo.lib gthread-2.0.lib gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 7:53 pm 
Offline

Joined: Sat Oct 18, 2008 6:13 pm
Posts: 3
Linked to those and got the same output:

1>------ Build started: Project: HelloGTK, Configuration: Debug Win32 ------
1>Linking...
1>Main.obj : error LNK2019: unresolved external symbol _gtk_main referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_widget_show referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_window_new referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_init_abi_check referenced in function _main
1>C:\Users\alec\projects\HelloGTK\Debug\HelloGTK.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Users\alec\projects\HelloGTK\HelloGTK\Debug\BuildLog.htm"
1>HelloGTK - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Did I perhaps not install something correctly? I would think that if that were the case I would have be getting messages like "can't find file <lib here>", but hey.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 19, 2008 7:23 am 
Offline
GTK+ Geek

Joined: Fri May 23, 2008 7:13 am
Posts: 73
TheVirtualMember wrote:
Linked to those


Are you sure? If you switch the linker option "Print progress messages" on, you should see output lines like these:

Code:
...
Searching Libraries
    Searching C:\GTK\WIN32\LIB\gtk-win32-2.0.lib:
...
      Found _gtk_main
        Referenced in test.obj
        Loaded gtk-win32-2.0.lib(libgtk-win32-2.0-0.dll)
...
      Found _gtk_widget_show
        Referenced in info.obj
        Referenced in test.obj
        Loaded gtk-win32-2.0.lib(libgtk-win32-2.0-0.dll)
...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 19, 2008 2:11 pm 
Offline

Joined: Sat Oct 18, 2008 6:13 pm
Posts: 3
Err, I'm not sure where the "Print Progress Messages" switch is, but I added /VERBOSE to the additional options under the command line section of linker (which should do the same thing I think), but I still get the 4 unresolved symbols (thought the output is different, and really long):

edit: btw im using Visual C++ 2008 Express, not VC++ 6.0

1>------ Build started: Project: HelloGTK, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>Linking...
1>Starting pass 1
1>Processed /DEFAULTLIB:MSVCRTD
1>Processed /DEFAULTLIB:OLDNAMES
1>Searching libraries
1> Searching C:\GTK+\Windows64\lib\gtk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\atk-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk_pixbuf-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangowin32-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangocairo-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pango-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\cairo.lib:
1> Searching C:\GTK+\Windows64\lib\gthread-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gobject-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gmodule-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\glib-2.0.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
1> Searching C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\MSVCRTD.lib:
1> Found __RTC_CheckEsp
1> Referenced in Main.obj
1> Loaded MSVCRTD.lib(_stack_.obj)
1> Found __RTC_Shutdown
1> Referenced in Main.obj
1> Loaded MSVCRTD.lib(_init_.obj)
1> Found _mainCRTStartup
1> Loaded MSVCRTD.lib(crtexe.obj)
1> Found "void __cdecl _RTC_Failure(void *,int)" (?_RTC_Failure@@YAXPAXH@Z)
1> Referenced in MSVCRTD.lib(_stack_.obj)
1> Loaded MSVCRTD.lib(_error_.obj)
1> Found __RTC_SetErrorFuncW
1> Referenced in MSVCRTD.lib(_init_.obj)
1> Loaded MSVCRTD.lib(_userapi_.obj)
1> Found __CRT_RTC_INITW
1> Referenced in MSVCRTD.lib(_init_.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __forceCRTManifestRTM
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(crtmanifestrtm.obj)
1> Found ___CxxSetUnhandledExceptionFilter
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(unhandld.obj)
1> Found __imp___configthreadlocale
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found ___globallocalestatus
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(xthdloc.obj)
1> Found __setdefaultprecision
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(fp8.obj)
1> Found __imp____setusermatherr
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __matherr
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(merr.obj)
1> Found __setargv
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(dllargv.obj)
1> Found __RTC_Initialize
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(_initsect_.obj)
1> Found __adjust_fdiv
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(adjustfd.obj)
1> Found __imp___adjust_fdiv
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __commode
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(xncommod.obj)
1> Found __imp____p__commode
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __fmode
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(xtxtmode.obj)
1> Found __imp____p__fmode
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found ___onexitbegin
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(atonexit.obj)
1> Found __imp___encode_pointer
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp____set_app_type
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __amsg_exit
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp____getmainargs
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __dowildcard
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(wildcard.obj)
1> Found __newmode
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(_newmode.obj)
1> Found ___security_init_cookie
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(gs_support.obj)
1> Found __imp___exit
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __XcptFilter
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp___cexit
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp__exit
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp____initenv
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp___CrtSetCheckCount
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __IsNonwritableInCurrentImage
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(pesect.obj)
1> Found __imp___CrtDbgReportW
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __initterm
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found ___xc_a
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(cinitexe.obj)
1>Processed /DEFAULTLIB:kernel32.lib
1> Processed /DISALLOWLIB:libc.lib
1> Processed /DISALLOWLIB:libcd.lib
1> Processed /DISALLOWLIB:libcmt.lib
1> Processed /DISALLOWLIB:libcmtd.lib
1> Processed /DISALLOWLIB:msvcrt.lib
1> Found __initterm_e
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found ___native_startup_state
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded MSVCRTD.lib(natstart.obj)
1> Found ___security_cookie
1> Referenced in MSVCRTD.lib(pesect.obj)
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Referenced in MSVCRTD.lib(gs_support.obj)
1> Loaded MSVCRTD.lib(gs_cookie.obj)
1> Found __except_handler4
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Referenced in MSVCRTD.lib(pesect.obj)
1> Loaded MSVCRTD.lib(chandler4gs.obj)
1> Found "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z)
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Loaded MSVCRTD.lib(_pdblkup_.obj)
1> Found @__security_check_cookie@4
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Referenced in MSVCRTD.lib(chandler4gs.obj)
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded MSVCRTD.lib(secchk.obj)
1> Found __IMPORT_DESCRIPTOR_MSVCR90D
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found "void __cdecl terminate(void)" (?terminate@@YAXXZ)
1> Referenced in MSVCRTD.lib(unhandld.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __controlfp_s
1> Referenced in MSVCRTD.lib(fp8.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __invoke_watson
1> Referenced in MSVCRTD.lib(fp8.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __unlock
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found ___dllonexit
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __lock
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp___onexit
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __imp___decode_pointer
1> Referenced in MSVCRTD.lib(atonexit.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __except_handler4_common
1> Referenced in MSVCRTD.lib(chandler4gs.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found ___report_gsfailure
1> Referenced in MSVCRTD.lib(secchk.obj)
1> Loaded MSVCRTD.lib(gs_report.obj)
1> Found __NULL_IMPORT_DESCRIPTOR
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found MSVCR90D_NULL_THUNK_DATA
1> Referenced in MSVCRTD.lib(MSVCR90D.dll)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Found __crt_debugger_hook
1> Referenced in MSVCRTD.lib(gs_report.obj)
1> Loaded MSVCRTD.lib(MSVCR90D.dll)
1> Searching C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\GTK+\Windows64\lib\gtk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\atk-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk_pixbuf-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangowin32-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangocairo-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pango-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\cairo.lib:
1> Searching C:\GTK+\Windows64\lib\gthread-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gobject-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gmodule-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\glib-2.0.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Found __imp__InterlockedExchange@8
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__Sleep@4
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__InterlockedCompareExchange@12
1> Referenced in MSVCRTD.lib(crtexe.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__IsDebuggerPresent@0
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Referenced in MSVCRTD.lib(gs_report.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__RaiseException@16
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__DebugBreak@0
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__WideCharToMultiByte@32
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__MultiByteToWideChar@24
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__lstrlenA@4
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetProcAddress@8
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__LoadLibraryA@4
1> Referenced in MSVCRTD.lib(_error_.obj)
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__SetUnhandledExceptionFilter@4
1> Referenced in MSVCRTD.lib(unhandld.obj)
1> Referenced in MSVCRTD.lib(gs_report.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__QueryPerformanceCounter@4
1> Referenced in MSVCRTD.lib(gs_support.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetTickCount@0
1> Referenced in MSVCRTD.lib(gs_support.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetCurrentThreadId@0
1> Referenced in MSVCRTD.lib(gs_support.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetCurrentProcessId@0
1> Referenced in MSVCRTD.lib(gs_support.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetSystemTimeAsFileTime@4
1> Referenced in MSVCRTD.lib(gs_support.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__HeapFree@12
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__HeapAlloc@12
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetProcessHeap@0
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetModuleFileNameW@12
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__VirtualQuery@12
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__FreeLibrary@4
1> Referenced in MSVCRTD.lib(_pdblkup_.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__TerminateProcess@8
1> Referenced in MSVCRTD.lib(gs_report.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__GetCurrentProcess@0
1> Referenced in MSVCRTD.lib(gs_report.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __imp__UnhandledExceptionFilter@4
1> Referenced in MSVCRTD.lib(gs_report.obj)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found __IMPORT_DESCRIPTOR_KERNEL32
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Found KERNEL32_NULL_THUNK_DATA
1> Referenced in kernel32.lib(KERNEL32.dll)
1> Loaded kernel32.lib(KERNEL32.dll)
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
1> Searching C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\GTK+\Windows64\lib\gtk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\atk-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk_pixbuf-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangowin32-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangocairo-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pango-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\cairo.lib:
1> Searching C:\GTK+\Windows64\lib\gthread-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gobject-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gmodule-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\glib-2.0.lib:
1>Finished searching libraries
1>Finished pass 1
1>Generating non-SAFESEH image.
1>Main.obj : error LNK2019: unresolved external symbol _gtk_main referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_widget_show referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_window_new referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gtk_init_abi_check referenced in function _main
1>C:\Users\alec\projects\HelloGTK\Debug\HelloGTK.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Users\alec\projects\HelloGTK\HelloGTK\Debug\BuildLog.htm"
1>HelloGTK - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2008 8:05 pm 
Offline
GTK+ Geek

Joined: Fri May 23, 2008 7:13 am
Posts: 73
Should this get a 32bit or 64bit application?

I don't have experience in writing 64bit applications, but to me these
TheVirtualMember wrote:
1> Searching C:\GTK+\Windows64\lib\gtk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk-win32-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\atk-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\gdk_pixbuf-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangowin32-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pangocairo-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\pango-1.0.lib:
1> Searching C:\GTK+\Windows64\lib\cairo.lib:
1> Searching C:\GTK+\Windows64\lib\gthread-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gobject-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\gmodule-2.0.lib:
1> Searching C:\GTK+\Windows64\lib\glib-2.0.lib:

seem to be 64bit versions of GTK+ libs and these
Quote:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:

seem to be 32bit versions.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group