News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

undefined reference to '__mulhi3' In function 'vfprintf': and 'calloc'

Started by Ralphxyz, January 25, 2013, 03:41:50 AM

Previous topic - Next topic

Ralphxyz

 :( I really do not know where even to begin.

I am a new user of Code:Blocks.

So far I have had a time getting my #includes "..." to work, but I have them working now.

But what about these errors:



This is using the C:\WinAVR-20090313 compiler.

Using the Atmel Toolchain I am able to build and compile my code without problems but that is using a different version of the AVR-GCC compiler.

How would I point Code:Blocks to the newer AVR-GCC compiler? Actually I cannot find the Atmel AVR Toolchain there is this notation in my Path C:\Program Files (x86)\Atmel\AVR Tools\AVR Toolchain\bin but that does not work for the Compiler's installation directory in Code:Blocks so I have to fix these undefined references problem.

Thanks for the help,
Ralph

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Ralphxyz

QuoteHave you tried setting up a compiler in Settings -> Compiler?

Short answer "yes" now what?

I think that answers both of my replies, thank you.

The default installed AVR-GCC compiler gets these "undefined reference" errors pointing to the compiler libraries
nothing that I have control over.

Ralph


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Ralphxyz

Now this is just a default installation of Code:Blocks.

The problem is with the installation of Code:Blocks.

I guess my first thing to do would be to re-install code blocks.

I take it this is not a common error.

Ralph

Ralphxyz

I re downloaded Code:Blocks and re-installed!!

I am still getting the same undefined reference to '__mulhi3' .



Now this isn't just a undefined reference to one of my libraries this is a compiler library!!

There definitely is a problem with the Windows 8 x64 install.

Ralph

stahta01

FYI: I am 99.99 % sure the problem is a Compiler or CB Toolchain configuration issue.

http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Compiler-neutral_setup_steps

Feel free to keep re-installing Code::Blocks; it won't fix this problem.

You do not seen wish my help, so goodbye.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Have you tried to build from the command line? Does it work there?

Posting screen shots of the result is useless. Look at the "Build log" for clues.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Ralphxyz

QuoteIf you installed the compiler on its default installation directory, there is nothing more to configure. Launch Code::Blocks and you 're all set :)
no I am not!!

I appreciate all of your help and I am trying to apply your help.

How do you run the Code:Blocks compiler from the command line.

I run fine from the command line but that is using a different compiler gcc version 4.3.2 (WinAVR 20090313).

Where is the build log? Like I said I am brand new to Code:Blocks.

Ralph


oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

danselmi

Can you post the full buildlog? Mmcu must be defined the same for compile and link phase.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

Ralphxyz

QuoteHave you setup C::B to use the correct compiler?

I have not setup anything!! I just did a install. Actually I have hit the Auto-detect button a couple of times:


QuoteCan you post the full buildlog? Mmcu must be defined the same for compile and link phase.

Again where is the build log?

Thanks for the help.

Are others running Windows 8 x64?

Ralph

Jenna

Quote from: Ralphxyz on January 26, 2013, 06:42:15 PM
Again where is the build log?

Are you kidding ?
You have posted a screen shot, that shows a tab, that is named "Build log".
It might help to click on the tab, even if there are other ways to reach it.

Ralphxyz

Sorry I was not looking at anything but the error message.

Speaking of which the screen shot I posted essentially says the same thing as the the Build Log, which I have finally seen.



Ralph