delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2023/01/22/07:08:18

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id:from
:to:cc:subject:date:message-id:reply-to;
bh=+e9dB2X1C1WxpXxoIoJVL0L/OESpY3MloqPn9BgG4cc=;
b=MYWaY1RVUClWv7oeyNwWwC7ZsnTw6/NTK0S3vvsJKcs3icZg0MLmq9fWX0G9VuTw4q
7692Cud7RYriaYF0YY4RwBWbHkHO1x9GDN3EL+9GxyIpTI/9Ww2+pEo+d0QuYwaIrT/0
9x9NYiaT0UVn/xTNoxMMfVDD7nilZG6/ZCzi3Z5ZenIDg7whjP74NdBZPUDIXGQgva33
WIjBpaQlXYOvpGiuwZfyEjO6NtAp/KlDLIcDj0LmNjYj236MRKj65dv6oxvcRaKl0eeU
hG8YfN4ZfMO3V8l1c8K2z9/7C/pZmHHberfVjV4YjqNfRtnAmh9ipW+6VkzwFkqIT94B
3b5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=+e9dB2X1C1WxpXxoIoJVL0L/OESpY3MloqPn9BgG4cc=;
b=FzVC/gHnP5BnYNdLYCsSrIQPAg+G4M5ARYPPqs2ri0SKqgIKL0/dMgOm0EENwdd0J7
jXBs25k2ZFPQuixBU/5vZ46tvonLMZPZeNv3HsqGRCqMUKKj+f5c1LcXiE1uwH6M85mW
8OpYrI4Sp43ZynLTllCwjtfVa6NTvLQB0g24mS5qDgDTs+A1oZPbIPw3/aFoG+JgN+96
Cx/AYKUt2e6DeEfuScYqD02q7vs0yhJMiYgQZmejBrhrPZuVZVyx+JQpuOFhFXnvi0qu
Mf77AhS9hQFJuVWUlz8etIfobZz8lvPGseU0uHg7nyrUnVfcwh6nYylux7EEPOxCdLn3
SkNw==
X-Gm-Message-State: AFqh2kpzJwYURh6vAzh32USZuwuhplQasieqEwzEoTl393oTtwb8MAWQ
bCslTRnhItsfImvDOd3mP7Hth+TXGiY=
X-Google-Smtp-Source: AMrXdXt1u3uGMTnf0b9c5ekLOSkL4BOBosY/NaFJSBs3JPW+lp9jkjqBEqfkZn+uRh0te5QUdShJEg==
X-Received: by 2002:a05:6102:fa1:b0:3d2:3358:57fb with SMTP id e33-20020a0561020fa100b003d2335857fbmr13916416vsv.11.1674389090085;
Sun, 22 Jan 2023 04:04:50 -0800 (PST)
Message-ID: <c934abb6-c11e-0087-cd32-365d25d3f154@gmail.com>
Date: Sun, 22 Jan 2023 07:04:48 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Subject: Re: DXE3 with std::vector
To: djgpp AT delorie DOT com
References: <edefcfee-d1ce-415a-8d1d-525a660fb0d5n AT googlegroups DOT com>
<63a56722-21d6-a368-6400-907f0cf9d01c AT gmail DOT com>
<CAA2C=vCduRPA7Ky-kDqs=QtO-qi=DQczM6FMHhB+=Ltof54P=Q AT mail DOT gmail DOT com>
From: "Frank Sapone (emoaddict15 AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
In-Reply-To: <CAA2C=vCduRPA7Ky-kDqs=QtO-qi=DQczM6FMHhB+=Ltof54P=Q@mail.gmail.com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 1/22/2023 2:15 AM, Ozkan Sezer (sezeroz AT gmail DOT com) [via 
djgpp AT delorie DOT com] wrote:
> On 1/22/23, Frank Sapone (emoaddict15 AT gmail DOT com) [via
> djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote:
>> Hello,
>>
>> I'm working on a C++ project with DXE3 and found it cannot resolve
>> throw_length_error() on dlopen().  Upon inspection, this is stemming
>> from my use of std::vector in some places.  Is there a way to resolve it
>> with DXE_EXPORT() without having to redo the code to not use
>> std::vector?  Right now I'm just getting the mangled name for it,
>> '`__ZSt20__throw_length_errorPKc''
> Do you not link to libstdc++ (and libgcc) ?
> If you really do and it still happens, then I don't know.
>
> Is the project open?

By link, you mean for dxe3gen?  If yes, then I tried that.  And no, the 
project is not open unfortunately.

Syntax for building the DXE: 'dxe3gen -V -U -E _dll_Entry -lstdc++ -lgcc 
<my objs> <my dxe>'

The interesting thing about the -lstdc++ -lc is that I'm using the 
Andrewwu cross-compiler which has mingw32 packaged and ready to go on 
Windows.  However, I had to copy libstdc++.a and libgcc.a from 
C:\djgpp\lib\gcc\i586-pc-msdosdjgpp\4.9.4 to 
C:\djgpp\i586-pc-msdosdjgpp\lib which I suspect is incorrect and could 
be part of my issue here?

Frank

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019