aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20060111 - [fixed]Win32/MingW - Error when compiling amule-gui.cpp  (Read 2852 times)

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149

With today's snapshot I got the following error
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/mingw/lib/wx/include/msw-unicode-release-static-2.7 -I/mingw/include/wx-2.7 -D__WXMSW__ -mthreads  -I./libs -Ilibs -DCLIENT_GUI -DEC_REMOTE -DNOMINMAX -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -MT amulegui-amule-gui.o -MD -MP -MF ".deps/amulegui-amule-gui.Tpo" -c -o amulegui-amule-gui.o `test -f 'amule-gui.cpp' || echo './'`amule-gui.cpp; \
then mv -f ".deps/amulegui-amule-gui.Tpo" ".deps/amulegui-amule-gui.Po"; else rm -f ".deps/amulegui-amule-gui.Tpo"; exit 1; fi
In file included from amule-remote-gui.h:41,
                 from amule.h:329,
                 from amule-gui.cpp:39:
SearchList.h:187: error: ISO C++ forbids declaration of `auto_ptr' with no type
SearchList.h:187: error: expected `;' before '<' token
SearchList.h:190: error: `CMemFilePtr' does not name a type
make[3]: *** [amulegui-amule-gui.o] Error 1

As mentioned in another thread, I recently installed the new release 3.4.5 of gcc for Mingw, which I used today.
« Last Edit: January 15, 2006, 02:40:42 AM by Radek »
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
CVS 20060112 - Same problems and hotfix
« Reply #1 on: January 12, 2006, 11:43:50 AM »

Today I had the time to take a look. I made a hotfix in SearchList.h, after which it compiled.
Code: [Select]
$ diff src/SearchList.h src/SearchList.h.ORG
37d36
< #include               // Needed for auto_ptr  # 20060112/Radek

Next, a similar problem in KnownFileList.cpp. And, of course, a similar hotfix.
Code: [Select]
$ diff src/KnownFileList.cpp src/KnownFileList.cpp.ORG
37d36
< #include           // Needed for std_ptr  # 20060112/Radek
After these two small patches, the compilation finished w/o other problems..
« Last Edit: January 12, 2006, 11:44:51 AM by Radek »
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: 20060111 - [fixed]Win32/MingW - Error when compiling amule-gui.cpp
« Reply #2 on: January 12, 2006, 01:03:33 PM »

Thanks, will be added. Seems that gcc4 implicity includes "memory" via other headers.
Logged