Re: Issue with dllexport/dllimport inline function

2022-11-01 Thread LIU Hao via Gcc
在 2022/11/2 02:11, xclae...@gmail.com 写道: Oh, that seems to be working now. Still got a small issue, glib compiles with -Werror=missing- prototypes: ../foo.h:7:5: error: no previous prototype for ‘g_strcmp0’ [- Werror=missing-prototypes] I'm a bit lost with what the prototype would look like i

Re: Fwd: Request easy bug fix

2022-11-01 Thread Jeff Law via Gcc
On 10/30/22 09:01, Baruch Burstein via Gcc wrote: On Tue, Feb 15, 2022 at 5:20 PM Jonathan Wakely wrote: On Tue, 15 Feb 2022 at 13:58, David Malcolm wrote: On Tue, 2022-02-15 at 12:55 +, Jonathan Wakely via Gcc wrote: On Tue, 15 Feb 2022 at 12:34, Baruch Burstein via Gcc < gcc@gcc.g

Re: Issue with dllexport/dllimport inline function

2022-11-01 Thread Xavier Claessens via Gcc
Oh, that seems to be working now. Still got a small issue, glib compiles with -Werror=missing- prototypes:  ../foo.h:7:5: error: no previous prototype for ‘g_strcmp0’ [- Werror=missing-prototypes] I'm a bit lost with what the prototype would look like in this case. I think `__attribute__((__dll

Re: [PATCH v2 3/3] p1689r5: initial support

2022-11-01 Thread Ben Boeckel via Gcc
On Tue, Nov 01, 2022 at 08:57:37 -0600, Tom Tromey wrote: > > "Ben" == Ben Boeckel via Gcc-patches writes: > > Ben> - `-fdeps-file=` specifies the path to the file to write the format to. > > I don't know how this output is intended to be used, but one mistake > made with the other dependenc

Re: Issue with dllexport/dllimport inline function

2022-11-01 Thread LIU Hao via Gcc
在 2022-11-01 23:38, xclae...@gmail.com 写道: Thanks a lot for your help. Sorry for late reply, but I gave your trick a try and it did not work: ``` /home/xclaesse/programmation/inline-example/builddir/../foo.h:7: multiple definition of `g_strcmp0'; libfoo.dll.p/foo.c.obj:/home/xclaesse/programmati

Re: Issue with dllexport/dllimport inline function

2022-11-01 Thread Xavier Claessens via Gcc
Thanks a lot for your help. Sorry for late reply, but I gave your trick a try and it did not work: ``` /home/xclaesse/programmation/inline-example/builddir/../foo.h:7: multiple definition of `g_strcmp0'; libfoo.dll.p/foo.c.obj:/home/xclaesse/programmation/inline- example/builddir/../foo.h:7: first

Re: [PATCH v2 3/3] p1689r5: initial support

2022-11-01 Thread Tom Tromey
> "Ben" == Ben Boeckel via Gcc-patches writes: Ben> - `-fdeps-file=` specifies the path to the file to write the format to. I don't know how this output is intended to be used, but one mistake made with the other dependency-tracking options was that the output file isn't created atomically.