Hi Stefan:
I did the following:
g++ -o dist/Debug/MinGW-Windows/cppapplication_1
build/Debug/MinGW-Windows/main.o -lcomdlg32 -v
but I got the same result.
I wonder if it's necesssary to include the binary files of microsoft sdk??
I executed this command too
nm -gC libcomdlg32.a
dmykt.o:
00000000 I _lib32_libcomdlg32_a_iname
dmykh.o:
00000000 I _head_lib32_libcomdlg32_a
U _lib32_libcomdlg32_a_iname
dmyks00024.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__dwOKSubclass@16
00000000 T dwOKSubclass@16
dmyks00023.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__dwLBSubclass@16
00000000 T dwLBSubclass@16
dmyks00022.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__WantArrows@16
00000000 T WantArrows@16
dmyks00021.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__ReplaceTextW@4
00000000 T ReplaceTextW@4
dmyks00020.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__ReplaceTextA@4
00000000 T ReplaceTextA@4
dmyks00019.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__PrintDlgW@4
00000000 T PrintDlgW@4
dmyks00018.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__PrintDlgExW@4
00000000 T PrintDlgExW@4
dmyks00017.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__PrintDlgExA@4
00000000 T PrintDlgExA@4
dmyks00016.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__PrintDlgA@4
00000000 T PrintDlgA@4
dmyks00015.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__PageSetupDlgW@4
00000000 T PageSetupDlgW@4
dmyks00014.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__PageSetupDlgA@4
00000000 T PageSetupDlgA@4
dmyks00013.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__LoadAlterBitmap@12
00000000 T LoadAlterBitmap@12
dmyks00012.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__GetSaveFileNameW@4
00000000 T GetSaveFileNameW@4
dmyks00011.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__GetSaveFileNameA@4
00000000 T GetSaveFileNameA@4
dmyks00010.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__GetOpenFileNameW@4
00000000 T GetOpenFileNameW@4
dmyks00009.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__GetOpenFileNameA@4
00000000 T GetOpenFileNameA@4
dmyks00008.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__GetFileTitleW@12
00000000 T GetFileTitleW@12
dmyks00007.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__GetFileTitleA@12
00000000 T GetFileTitleA@12
dmyks00006.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__FindTextW@4
00000000 T FindTextW@4
dmyks00005.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__FindTextA@4
00000000 T FindTextA@4
dmyks00004.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__CommDlgExtendedError@0
00000000 T CommDlgExtendedError@0
dmyks00003.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__ChooseFontW@4
00000000 T ChooseFontW@4
dmyks00002.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__ChooseFontA@4
00000000 T ChooseFontA@4
dmyks00001.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__ChooseColorW@4
00000000 T ChooseColorW@4
dmyks00000.o:
U _head_lib32_libcomdlg32_a
00000000 I _imp__ChooseColorA@4
00000000 T ChooseColorA@4
--------------------------------------------
El mié, 7/10/15, Stefan Weil <[email protected]> escribió:
Asunto: Re: [Mingw-w64-public] Mingw64 not linking due to undefined
references
Para: [email protected]
Fecha: miércoles, 7 de octubre, 2015 00:46
Am 07.10.2015 um 07:12
schrieb Mack Paul:
> Hi guys:
>
> I started to learn
mingw64 and tried to compile this cpp file using netbeans
8.0.1
> What I need to see is the dialog
of printing of windows and to print the text "Hola
mundo".
[...]
> g++ -o
dist/Debug/MinGW-Windows/cppapplication_2
build/Debug/MinGW-Windows/main.o -v
Adding -lcomdlg32 should help (if that is the
only missing library,
otherwise
add the missing ones, too).
> I think, mingw-w64 includes the win32
apis. The library that has to be linked is
\mingw32\i686-w64-mingw32\lib\libcomdlg32.a, but I'm
getting error of undefined reference.
>
Only the
standard C and C++ libraries are added automatically.
All others have to be added to the command
line.
Regards
Stefan
------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure
Monitoring from a single dashboard
Integrate
with 40+ ManageEngine ITSM Solutions for complete
visibility
Physical-Virtual-Cloud
Infrastructure monitoring from one console
Real user monitoring with APM Insights and
performance trend reports
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public