Forum > Windows

optimized sources

<< < (31/179) > >>

_heinz:
have now FFTWF Optimizer sucessful compiled.
compiled FFTWF client , but the linker shows still some not resolved external references.
--------------------------------------------------------------------------------------------------------------------------

analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_import_wisdom_from_string" in Funktion ""void __cdecl load_wisdom(void)" (?load_wisdom@@YAXXZ)".
analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_set_timelimit" in Funktion ""void __cdecl load_wisdom(void)" (?load_wisdom@@YAXXZ)".
analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_export_wisdom_to_string" in Funktion ""void __cdecl save_wisdom(void)" (?save_wisdom@@YAXXZ)".
analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_plan_dft_1d" in Funktion ""void __cdecl do_generate_fft_coeff(void)" (?do_generate_fft_coeff@@YAXXZ)".
Optimizer.lib(benchmark.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_fftwf_plan_dft_1d".
analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_execute_dft" in Funktion ""void __cdecl do_transpose(void)" (?do_transpose@@YAXXZ)".
Optimizer.lib(benchmark.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_fftwf_execute_dft".
analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_destroy_plan" in Funktion ""void __cdecl do_return_best_of_signals(void)" (?do_return_best_of_signals@@YAXXZ)".
analyzeFuncs.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_execute" in Funktion ""int __cdecl v_BaseLineSmooth(float (*)[2],int,int,int)" (?v_BaseLineSmooth@@YAHPAY01MHHH@Z)".
malloc_a.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_malloc" in Funktion ""void * __cdecl malloc_a(unsigned int,unsigned int)" (?malloc_a@@YAPAXII@Z)".
malloc_a.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_fftwf_free" in Funktion ""void __cdecl free_a(void *)" (?free_a@@YAXPAX@Z)".
.\Release32-NOGFX\seti_boinc.exe : fatal error LNK1120: 9 nicht aufgelöste externe Verweise.
--------------------------------------------------------------------------------------------------------------------------------------------
??
now I´m searching    :o
----------------------------------------------------------------------------------------
IPP SSE2 is compiled and linked sucessful   ;D
IPP MMX is compiled and linked sucessful    ;D


_heinz:
Who know anything about this :
in the configuration of Release32-NOGFX I can compile opt_FPU.cpp from Optimizer with 0 error.
When I now change the configuration to Debug (as Simon described it)  it shows the following:

------ Erstellen gestartet: Projekt: Optimizer, Konfiguration: Debug Win32 ------
Kompilieren...
opt_FPU.cpp
c:\i\sc\seti\boinc\api\boinc_api.h(123) : error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'worker_thread_handle'
c:\i\sc\seti\boinc\api\boinc_api.h(123) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
c:\i\sc\seti\boinc\api\boinc_api.h(123) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\client\sincos.h(31) : error C2006: '#include': Dateinamen erwartet, aber 'Bezeichner' gefunden
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\client\sincos.h(31) : fatal error C1083: Datei (Include) kann nicht geöffnet werden: "": No such file or directory
Das Buildprotokoll wurde unter "file://c:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer\Debug\BuildLog.htm" gespeichert.
Optimizer - 5 Fehler, 0 Warnung(en)
----------------------------------------------------------------------------------------------------------------------------------------
if we go to sincos.h we see:
29 #ifndef _SINCOS_H_
30   #define _SINCOS_H_
31    #include CMATH_LIB    <----error
    #ifdef __cplusplus
      extern "C"
      {
    #endif
---------------------------------------------------------------------------------
if we now go where CMATH_LIB is defined we see in win-config.h ---->
   // Harold Naparst's suggestion
   #ifdef __INTEL_COMPILER
      /* Should work but doesn't - more work required
      #undef _INC_MATH
      #define MATH_LIB <mathimf.h>
      #define CMATH_LIB <mathimf.h>
      */
      #define MATH_LIB <math.h>
      #define CMATH_LIB <cmath>
   #else
      #define MATH_LIB <math.h>             
      #define CMATH_LIB <cmath>       <----
   #endif
----------------------------------------------------------------------------------------------------------------------------
But it looks like this will not be inserted into sincos.h in the #include statement.

If I write it direct in the #include  in sincos.h ----->
#include <cmath>
the necessary path is set alright c:\I\VS8\Include

then it produces a lot of new errors
--------------------------------------------------------------------------------------------------------------------------
did control possible values, but nothing found
iI don´understan that it compile under Release32-NOGFX  without problems
All other projects compile fine under Debug

any hints and suggestions are welcome
regards   :'(


_heinz:
Release32-NOGFX   ----->
------ Erstellen gestartet: Projekt: Optimizer, Konfiguration: Release32-NOGFX Win32 ------
Kompilieren...
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 14.00.50727.762 für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cl /Od /Ob2 /Oi /Ot /Oy /GT /I "../../../boinc/win_build" /I ".." /I "..\.." /I "..\..\..\boinc\lib" /I "../../../boinc/api" /I "../../db" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer" /I "C:\I\INTEL\MKL\9.0\include\fftw" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\win_build" /D "USE_IPP" /D "USE_SSE2" /D "WIN32" /D "_WIN32" /D "_WINDOWS" /D "_CONSOLE" /D "_LIB" /D "_MT" /D "CLIENT"/D "NBOINC_APP_GRAPHICS" /D "_UNICODE" /D "UNICODE" /D "DEBUG" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /GF /FD /EHsc /MT /Zp16 /Gy /Fo"Release32-NOGFX\\" /Fd"Release32-NOGFX\vc80.pdb" /W3 /c /Wp64 /Zi /Gd /TP /FI "win-config.h" ".\opt_FPU.cpp"
opt_FPU.cpp
Das Buildprotokoll wurde unter "file://c:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer\Release32-NOGFX\BuildLog.htm" gespeichert.
Optimizer - 0 Fehler, 0 Warnung(en)
========?= Erstellen: 1 erfolgreich, Fehler bei 0, 0 aktuell, 0 übersprungen ==========

nobody knows why ??  I´m searching   :'(

_heinz:
uhhh   found the problem

iin the Debug configuration we must "Force includes"  win-config.h

thats it how you can see here ------>
--------------------------------------------------------------------------------------------------------------------------
------ Erstellen gestartet: Projekt: Optimizer, Konfiguration: Debug Win32 ------
Kompilieren...
opt_FPU.cpp
Das Buildprotokoll wurde unter "file://c:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer\Debug\BuildLog.htm" gespeichert.
Optimizer - 0 Fehler, 0 Warnung(en)
========== Erstellen: 1 erfolgreich, Fehler bei 0, 0 aktuell, 0 übersprungen ==========


regards seti_britta ~heinz  ;D

_heinz:
the Debug configuration is now ready
-----------------------------------------------------
------ Neues Erstellen gestartet: Projekt: seti_boinc, Konfiguration: Debug Win32 ------
Die Zwischen- und Ausgabedateien für das Projekt "seti_boinc" mit der Konfiguration "Debug|Win32" werden gelöscht.
Kompilieren...
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 14.00.50727.762 für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cl /Od /I "." /I "../../../boinc/api" /I "../../../boinc/client/win" /I "../../../boinc/lib" /I ".." /I "glut" /I "../../../boinc/image_libs" /I "../../../boinc/jpeglib" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\db" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\glut" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\jpeglib" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "CLIENT" /D "NBOINC_APP_GRAPHICS" /D "USE_IPP" /D "USE_SSE2" /D "_VC80_UPGRADE=0x0600" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Fp".\Debug/seti_boinc.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /c /ZI /TP "..\..\db\xml_util.cpp"
   "..\worker.cpp"
   "..\..\..\boinc\api\windows_opengl.C"
   "..\version.cpp"
   "..\..\..\boinc\lib\util.C"
   "..\timecvt.cpp"
   "..\..\image_libs\tgalib.cpp"
   "..\..\db\sqlrow.cpp"
   "..\..\db\sqlblob.cpp"
   "..\spike.cpp"
   "..\..\..\boinc\lib\shmem.C"
   "..\seti_header.cpp"
   "..\seti.cpp"
   "..\..\db\schema_master.cpp"
   "..\sah_gfx_base.cpp"
   "..\sah_gfx.cpp"
   "..\s_util.cpp"
   "..\pulsefind.cpp"
   "..\progress.cpp"
   "..\..\..\boinc\lib\parse.C"
   "..\malloc_a.cpp"
   "..\main.cpp"
   "..\lcgamm.cpp"
   "..\..\..\boinc\api\gutil.C"
   "..\..\..\boinc\api\graphics_data.C"
   "..\..\..\boinc\api\graphics_api.C"
   "..\gdata.cpp"
   "..\gaussfit.cpp"
   "..\..\..\boinc\lib\filesys.C"
   "..\fft8g.cpp"
   "..\chirpfft.cpp"
   "..\..\..\boinc\api\boinc_api.C"
   "..\..\..\boinc\lib\app_ipc.C"
   "..\analyzeReport.cpp"
   "..\analyzePoT.cpp"
   "..\analyzeFuncs.cpp"
analyzeFuncs.cpp
-----IPP-----
-----SSE2-----
analyzePoT.cpp
--- BenSpectrum ---
analyzeReport.cpp
app_ipc.C
boinc_api.C
chirpfft.cpp
fft8g.cpp
filesys.C
gaussfit.cpp
gdata.cpp
graphics_api.C
graphics_data.C
gutil.C
lcgamm.cpp
main.cpp
malloc_a.cpp
parse.C
progress.cpp
pulsefind.cpp
s_util.cpp
Code wird generiert...
Kompilieren...
sah_gfx.cpp
sah_gfx_base.cpp
schema_master.cpp
seti.cpp
seti_header.cpp
shmem.C
spike.cpp
sqlblob.cpp
sqlrow.cpp
tgalib.cpp
timecvt.cpp
util.C
version.cpp
windows_opengl.C
worker.cpp
xml_util.cpp
Code wird generiert...
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\db\xml_util.cpp(663) : warning C4717: 'xml_match_tag': Rekursiv für alle Steuerelementpfade. Die Funktion verursacht einen Stapelüberlauf zur Laufzeit.
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\db\xml_util.cpp(689) : warning C4717: 'xml_find_tag': Rekursiv für alle Steuerelementpfade. Die Funktion verursacht einen Stapelüberlauf zur Laufzeit.
Verknüpfen...
LINK : warning LNK4098: Standardbibliothek "LIBCMT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.
LIBCMTD.lib(a_env.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__GetEnvironmentStrings@0" in Funktion "___crtGetEnvironmentStringsA".
Debug/setiathome_2.18_windows_intelx86.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
Browseinformationsdatei wird erstellt...
Microsoft Browse Information Maintenance-Programm Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Das Buildprotokoll wurde unter "file://c:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\win_build\Debug\BuildLog.htm" gespeichert.
seti_boinc - 2 Fehler, 3 Warnung(en)
========== Alles neu erstellen: 0 erfolgreich, Fehler bei 1, 0 übersprungen ==========
------------------------------------------------------------------------------------------------------------------------------------------
remember that I had a problem with the GetEnvironmentStrings in Optimizer opt_osinterface.cpp
here is the solution: --->

// HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\SecondLevelDataCache

#define CPU_REG_KEY      HKEY_LOCAL_MACHINE
#define CPU_REG_SUBKEY   "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\"

#define L2_DATA_CACHE      "SecondLevelDataCache"


//
// os_L2_cache_size - Get value from registry: Might be the off-cpu cache size
//
int os_L2_cache_size( void )
   {
   HKEY hKey;
/*   DWORD dwType; */
   DWORD dwSize;
   DWORD L2_size = 0;
//seti_britta:
/*   LONG status = RegOpenKeyEx(CPU_REG_KEY, CPU_REG_SUBKEY, 0, KEY_QUERY_VALUE, &hKey); */
   LONG status = RegOpenKeyEx(CPU_REG_KEY, TEXT("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\"), 0, KEY_QUERY_VALUE, &hKey);
   if(status != ERROR_SUCCESS)   return 0;

   dwSize = sizeof( L2_size );
//seti_britta:
/*   status = (RegQueryValueEx(hKey, L2_DATA_CACHE, NULL, NULL, (LPBYTE)&L2_size, &dwSize)); */
   status = (RegQueryValueEx(hKey, TEXT("SecondLevelDataCache"), NULL, NULL, (LPBYTE)&L2_size, &dwSize));
   RegCloseKey(hKey);

   return L2_size;
   }

-----------------------------------------------------------------------------------------------------------------------------------------------------------
it compiles fine how you can see: ---->
------ Erstellen gestartet: Projekt: Optimizer, Konfiguration: Debug Win32 ------
Kompilieren...
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 14.00.50727.762 für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cl /Od /Oy /I "../../../boinc/win_build" /I ".." /I "..\.." /I "..\..\..\boinc\lib" /I "../../../boinc/api" /I "../../db" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer" /I "C:\I\INTEL\MKL\9.0\include\fftw" /I "C:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\win_build" /D "WIN32" /D "_WIN32" /D "_WINDOWS" /D "_CONSOLE" /D "_DEBUG" /D "_LIB" /D "_MT" /D "CLIENT" /D "USE_IPP" /D "USE_SSE2" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /Gm /EHsc /RTC1 /MT /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP /FI "win-config.h" ".\opt_os_interface.cpp"
opt_os_interface.cpp
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\client\optimizer\opt_os_interface.cpp(92) : warning C4552: '<<': Operator hat keine Auswirkungen; Operator mit Nebeneffekt erwartet
Das Buildprotokoll wurde unter "file://c:\I\SC\seti\seti_boinc_2k3_2.2B-Ben-Joe\client\Optimizer\Debug\BuildLog.htm" gespeichert.
Optimizer - 0 Fehler, 1 Warnung(en)
========== Erstellen: 1 erfolgreich, Fehler bei 0, 0 aktuell, 0 übersprungen ==========
-------------------------------------------------------------------------------------------------------------------------------------

the conflict of  "LIBCMT" and LIBCMTD.lib  with 1 not resolved ext ref  ??
I must search  ::)
any suggestions are welcome
regards seti_britta ~heinz

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version