User forums > Using Code::Blocks

fasm using c::b works, but still some questions

<< < (3/4) > >>

stahta01:
Settings -> Compiler
Far right tab: "Other Settings"
Button: Advanced Options"
Tab: output parsing

Is where to both set and test the regex.

Tim S.

denimjeans2007:
awesome !!! thank you so much, got it working now.
with


--- Code: ---([{}()[:blank:]#%$~[:alnum:]!&_:+/\\\.-]+)\ \[([0-9]+)\]:
--- End code ---
maybe not the best way, but its only for FASM compiler, therefore all fine.

only issue is, that the message is on the 2nd line. Trying to find a way
in notepad plus it match with

--- Code: ---([{}()[:blank:]#%$~[:alnum:]!&_:+/\\\.-]+)\ \[([0-9]+)\]:\r\n(.*)
--- End code ---
the last sub.expression (.*) is the second line, the 4th match. trying to figure it out now, maybe do you or anyone know on how to match in Codeblocks on the 2nd line as message?

Edit: workaround is a second match only on the message with :

--- Code: ---processed:\ (.*)
--- End code ---
screenshot attached.

denimjeans2007:
meanwhile I got answer in the FASM forum (thanks to revolution)
we can change the system.inc depending on the system in use (win32 in my case) and recompile. took under 1 sec :)
now it works as expected.

see screenshot.
Issue 1 resolved


--- Code: ---For each supported system the file named "SYSTEM.INC" has a line similar to this:
Code:
line_data_start db ':',0xA,0   
You can delete the line feed.
--- End code ---

only left problem is the intellisense / codecompletetion  :)

denimjeans2007:
if still interessed:


--- Code: ---include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here
error: file not found.
--- End code ---
I found another possible issue why it was not working for you.
You need to set the windows variables as in the screenshot (path requires to point to your fasm dir)

--- Code: ---Add to windows path
FASM -> C:\fasm
INCLUDE -> C:\fasm\include
--- End code ---

then it will work (hopefully :D)

stahta01:
Adding an CB Environment Variable of INCLUDE did fix my build error.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version