Sign in to follow this  
Followers 0
Nikolle9203

Error while trying to compile

6 posts in this topic

Hey guys  :bye:

My pleasure to join this forum.

I am having a bit of problem compiling my script

So what i am trying to achive is to include a3x file.

The code works without being compiled.Here is the example

Main.au3

 

#include <functions.a3x>

msgbox(0,"Hello","Hello autoit")
msg()

 

Functions .a3x

 

 
func msg()
return msgbox(0,"Bye","Bye autoit")
endfunc

 

The code works if executed without being compiled

When i try to compile it , i am receiving an error :

Autoit2exe error

Line 1 ((filepath))

Some hex values

^ERROR

Error:Unable to parse line.

 

What could cause it ?  :

Share this post


Link to post
Share on other sites



Does it work correctly if you rename the include file to "functions.au3"?

Share this post


Link to post
Share on other sites

Does it work correctly if you rename the include file to "functions.au3"?

Yep it does.Also works when its not compiled.While compiling giving an error.

Share this post


Link to post
Share on other sites

So the solution is to name your files correct. A3x is for scripts that are already compiled.

Share this post


Link to post
Share on other sites

Ok so i found the solution.The problem was im using an outdated Aut2exe ( 3.3.8.1 ).Now i can compile it.
The reason i was using such an old version is because the newest one compiles without icons and version info + 200KB larger without UPX option.I thought that was a bug.Also sometimes gives "Not Valid Win32 exe" error.Do you guys know what could cause that ? Or now its by default to be without icon , larger and no version infos

Share this post


Link to post
Share on other sites

Or now its by default to be without icon , larger and no version infos

This is correct. Look up #pragma in the help file for how to control the icon and version info.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0