Compile Error
Jgroover100 opened this issue · comments
Jgroover100 commented
After all the work I did in installing the libraries I am getting the following error when compiling my program.
Collect2: error: ld returned 1exit status
Does anyone have a fix or comments?
Jgroover100 commented
Compilation terminated
/Use/lib/gcc/x86_64-linux-gnu/9/../../x86_64-linux-gnu/sert1.o: in function'_start': (.text+0x24): undefined reference to 'main'
Collect2: error:ld returned 1 exit status
This is the error. Anybody with a solution? Thanks
Eric Voskuil commented
That's not much to go on especially considering it's your (custom) project.
Jgroover100 commented
I understand. The issue I believe is with the compiling options. I'm just trying a very simple program to get used to programming with the libbitcoin library.
Eric Voskuil commented
The examples project is a very simple program that compiles with the libbitcoin-system library and is verified in CI.
Jgroover100 commented
I have followed the instructions and that's the error I'm getting. Is it configuration or something else?
Sent from ProtonMail mobile
…-------- Original Message --------
On Jan 25, 2022, 6:22 PM, Eric Voskuil wrote:
The examples project is a very simple program that compiles with the libbitcoin-system library and is verified in CI.
—
Reply to this email directly, [view it on GitHub](#1246 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AXJ2XDUPZTU76CXB5K7Y6A3UX4WDNANCNFSM5MZECC2Q).
Triage notifications on the go with GitHub Mobile for [iOS](https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or [Android](https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
You are receiving this because you authored the thread.Message ID: ***@***.***>
Eric Voskuil commented
Impossible to say, I don't have your repro. But the examples project (and tests project) builds in CI on multiple platforms.
Jgroover100 commented
Could it be that I am giving the wrong command options in the compiler?
Sent from ProtonMail mobile
…-------- Original Message --------
On Jan 25, 2022, 6:25 PM, Eric Voskuil wrote:
Impossible to say, I don't have your repro. But the examples project (and tests project) builds in CI on multiple platforms.
—
Reply to this email directly, [view it on GitHub](#1246 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AXJ2XDUSDJIZH57XFTBUH5DUX4WQBANCNFSM5MZECC2Q).
Triage notifications on the go with GitHub Mobile for [iOS](https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or [Android](https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
You are receiving this because you authored the thread.Message ID: ***@***.***>
Phillip Mienk commented
Closed as both stale and external.